effect-io-ai

Package: effect
Module: Iterable

Iterable.unsafeHead

Get the first element of a Iterable, or throw an error if the Iterable is empty.

Signature

declare const unsafeHead: <A>(self: Iterable<A>) => A

Source

Since v3.3.0