Array¶
No import is needed.
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
length¶
Builtin array length (resolved as ArrayLen before instance dispatch).
this¶
Element at index. Panics if index is out of range.
iterator¶
Enumerator for treating an array as a Collection.
contains¶
Returns whether the collection contains the requested key or value.
index_of¶
Returns the first matching index, or None when no match exists.
slice¶
Returns a new array copied from start (inclusive) to end (exclusive). Panics unless 0 <= start <= end <= length.
reverse¶
Reverses the elements in place.
concat¶
Returns a new array containing this array followed by other.