keen/col/array
SourceThis is a standard module
and does not need to be explicitly imported.
array[t] builtinarray-view[t] record (has private fields)list-new[t] t[](a t[])~[t] t[](a t, b t[])Prepend an element to an array. This is O(n).
~[t] t[](a t[], b t)Append an element to an array. This is O(n).
~~[t] t[](a t[], b t[])Concatenates two arrays. This is O(n).
update-at[t] t[](a t[], index nat64, new-value t)Returns a new array like a but where a[index] is replaced with new-value. This is O(n).
index must be a valid index into a. This can't be used to add a value to the end.
remove-at[t] t[](a t[], index nat64)Removes the element at
index, shifting all later elements to the left.array-iterator[t] record (has private fields)index[t] nat64(a t array-iterator)If
a iterates an array-view, this is the index relative to the view.
trueifa.size == 0.