effect-io-ai

Package: effect
Module: Array

Array.init

Get all but the last element of an Iterable, creating a new Array, or None if the Iterable is empty.

Signature

declare const init: <A>(self: Iterable<A>) => Option.Option<Array<A>>

Source

Since v2.0.0