A fixed-size array of elements. An array may have zero size (an empty array). Arrays are mutable. Any element of an array may be set to a new value.
This class is provided primarily to support interoperation with Java, and for some performance-critical low-level programming tasks.
Initializer |
Array({Element*} elements) |
Attributes | |
rest | Source Code The rest of the array, without the first element. Refined declaration: rest |
reversed | Source Code Reverse this array, returning a new array. Refined declaration: reversed |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Cloneable<Clone> |
Attributes inherited from: Collection<Element> |
Attributes inherited from: Correspondence<Key,Item> |
Attributes inherited from: Iterable<Element,Absent> |
Attributes inherited from: List<Element> |
Methods | |
copyTo | Source Code shared void copyTo(Array<Element> other, Integer sourcePosition = 0, Integer destinationPosition = 0, Integer length = ...) Efficiently copy the elements in the segment
Parameters:
|
set | Source Code Replace the existing element at the specified index with the given element. Does nothing if the specified index is negative or larger than the index of the last element in the array. Parameters:
|
Inherited Methods |
Methods inherited from: Object |
Methods inherited from: Category |
Methods inherited from: Correspondence<Key,Item> |
Methods inherited from: Iterable<Element,Absent> any, by, chain, collect, count, cycle, defaultNullElements, every, filter, find, findLast, fold, following, iterator, longerThan, map, repeat, select, shorterThan, skipping, skippingWhile, sort, taking, takingWhile |
Methods inherited from: List<Element> |
Methods inherited from: Ranged<Index,Span> |