Package: effect
Module: Array
Return a tuple containing the first element, and a new Array of the remaining elements, if any.
Example
import { Array } from "effect";
const result = Array.unprepend([1, 2, 3, 4])
console.log(result) // [1, [2, 3, 4]]
Signature
declare const unprepend: <A>(self: NonEmptyReadonlyArray<A>) => [firstElement: A, remainingElements: Array<A>]
Since v2.0.0