Skip to content

NonEmpty

NonEmpty<A> = NonEmptyArr<A>

Defined in: Data/Arr.ts:294

A type alias representing an array that is guaranteed to contain at least one element. Under the hood, this is a read-only tuple structure: readonly [A, ...A[]].

A

const list: Arr.NonEmpty<number> = [1, 2, 3];