effect-io-ai

Package: effect
Module: Array

Array.tailNonEmpty

Get all but the first element of a NonEmptyReadonlyArray.

Example

import { Array } from "effect"

const result = Array.tailNonEmpty([1, 2, 3, 4])
console.log(result) // [2, 3, 4]

Signature

declare const tailNonEmpty: <A>(self: NonEmptyReadonlyArray<A>) => Array<A>

Source

Since v2.0.0