effect-io-ai

Package: effect
Module: Iterable

Iterable.head

Get the first element of a Iterable, or None if the Iterable is empty.

Signature

declare const head: <A>(self: Iterable<A>) => Option<A>

Source

Since v2.0.0