/** * Retrieves the first element of the array. * * @tsplus getter NonEmptyImmutableArray head */ export function head(self: NonEmptyImmutableArray): A { return self.array[0]! }