Skip to content

tail

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

Defined in: Utils/Arr.ts:57

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

A

readonly A[]

Maybe<readonly A[]>

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