Package: effect
Module: Array
Get the first element of a non empty array.
Example
import { Array } from "effect"
const result = Array.headNonEmpty([1, 2, 3, 4])
console.log(result) // 1
Signature
declare const headNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => A
Since v2.0.0