Type Hierarchy:

- Anything
  - Object
    - Array<Element>

Satisfied Interfaces: Category, Cloneable<List<Element>>, Collection<Element>, Correspondence<Integer,Element>, Iterable<Element,Null>, List<Element>, Ranged<Integer,Array<Element>>

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 shared actual Array<Element> rest The rest of the array, without the first element. Refined declaration: rest
reversed | Source Code shared actual Array<Element> reversed Reverse this array, returning a new array. Refined declaration: reversed

Inherited Attributes
Attributes inherited from: Object hash, string
Attributes inherited from: Cloneable<Clone> clone
Attributes inherited from: Collection<Element> string
Attributes inherited from: Correspondence<Key,Item> keys
Attributes inherited from: Iterable<Element,Absent> coalesced, cycled, empty, first, indexed, last, rest, sequence, size, string
Attributes inherited from: List<Element> hash, lastIndex, reversed

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 `sourcePosition:length` of this array to the segment `destinationPosition:length` of the given array. Parameters: other The array into which to copy the elements. sourcePosition = 0 The index of the first element in this array to copy. destinationPosition = 0 The index in the given array into which to copy the first element. length = size-sourcePosition The number of elements to copy.
set | Source Code shared void set(Integer index, Element element) 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: index The index of the element to replace. element The new element.

Inherited Methods
Methods inherited from: Object equals
Methods inherited from: Category contains, containsAny, containsEvery
Methods inherited from: Correspondence<Key,Item> defines, definesAny, definesEvery, get, items
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> endsWith, equals, firstInclusion, firstOccurrence, includes, includesAt, inclusions, indexes, initial, lastInclusion, lastOccurrence, occurrences, occurs, occursAt, startsWith, terminal, trim, trimLeading, trimTrailing, withLeading, withTrailing
Methods inherited from: Ranged<Index,Span> segment, span, spanFrom, spanTo