effect-io-ai

Package: effect
Module: List

List.last

Returns the last element of the specified list, or None if the list is empty.

Signature

declare const last: <A>(self: List<A>) => Option.Option<A>

Source

Since v2.0.0