FunVec1T(ListT) Constructor
1-dimensional vector, length and values of which are determined by the underlying
list.
var list = new List<char> { 'a', 'b', 'c' };
FunVec1<char> vec = new(list);
Assert(vec.Length1 == 3);
Assert(vec[2] == 'c');
Assert(vec.Get(0) == Some('a'));
Assert(vec.Get(3).IsNone);
Namespace: Orx.Fun.FunVecAssembly: Orx.Fun.FunVec (in Orx.Fun.FunVec.dll) Version: 1.0.0
public FunVec1(
List<T> list
)
Parameters
- list ListT
- Underlying list.