Skip to content

tail

tail<A>(data): Option<readonly A[]>

Defined in: Core/Arr.ts:57

Returns all elements except the first, or None if the array is empty.

A

readonly A[]

Option<readonly A[]>

Arr.tail([1, 2, 3]); // Some([2, 3])
Arr.tail([]); // None