FunVec1T(T) Constructor

1-dimensional vector, length and values of which are determined by the underlying array.
C#
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);

Definition

Namespace: Orx.Fun.FunVec
Assembly: Orx.Fun.FunVec (in Orx.Fun.FunVec.dll) Version: 1.0.0
C#
public FunVec1(
	T[] array
)

Parameters

array  T
Underlying array.

See Also