☰
marray
marray
§marray(T type, length i32, data fuzion.sys.internal_array marray.T, #_34 unit) => marray marray.T:Sequence marray.T
§marray(T
type
, length i32, data fuzion.sys.internal_array marray.T, #_34 unit) =>
marray marray.T:
Sequence marray.Tcreate a new marray by adding a new element o at the end of this marray
is this sequence known to be finite? For infinite sequences, features like
count diverge.
count diverge.
fold the elements of this array using the given monoid and initial value
Used to fold an array tail-recursively
Used to fold an array tail-recursively
fold the elements of this array using the given monoid.
e.g., to sum the elements of an array of i32, use a.fold i32.sum
e.g., to sum the elements of an array of i32, use a.fold i32.sum
a sequence of all valid indices to access this array. Useful e.g., for
`for`-loops:
for i in arr.indices do
`for`-loops:
for i in arr.indices do
infix operator synonym for add
map the array to a new array applying function f to all elements
NYI: marray should be rewritten using effects.