Skip to content

first

Module Export

[value] |> value | nothing

Returns the first/next element in the input iterator.

If the iterator is empty, nothing is returned.

Examples

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