FunVec1T(T) Constructor
1-dimensional vector, length and values of which are determined by the underlying
array.
var array = new char[] { 'a', 'b', 'c' };
FunVec1<char> vec = new(array);
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(
T[] array
)
Parameters
- array T
- Underlying array.