☰
array
mutate.array
§array(T type, length i32, init T) => mutate.array mutate.array.T:Sequence mutate.array.T,mutable_element
§array(T
type
, length i32, init T) =>
mutate.array mutate.array.T:
Sequence mutate.array.T,mutable_element create a mutable array.
create immutable array from this
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.
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
map the array to a new array applying function f to all elements