Array.tail

Advance to the next element in the array. The user must check that the array isn't empty, prior to calling this function.

This must be used in order to iterate through a const or immutable array For a mutable array this is equivalent to calling popFront.

struct Array(T)
Qualified
tail
(
this Qualified
)
()

Return Value

Type: Qualified

an array that starts with the next element in the original array.

Complexity: O(1).

Examples

auto ia = immutable Array!int([1, 2, 3]);
assert(ia.tail.front == 2);

Meta