Skip to content

tails

Module Export

[value] |> [[value]]

Tails returns an iterator of all final segments of the input, longest first.

Examples

import 'iterators'
from [1, 2, 3] tails

Result:

[[1,2,3],[1,2],[1],[]]