MCPcopy
hub / github.com/Effect-TS/effect / initNonEmpty

Function initNonEmpty

packages/effect/src/Array.ts:778–778  ·  view source on GitHub ↗
(self: NonEmptyReadonlyArray<A>)

Source from the content-addressed store, hash-verified

776 * @since 2.0.0
777 */
778export const initNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => self.slice(0, -1)
779
780/**
781 * Keep only a max number of elements from the start of an `Iterable`, creating a new `Array`.

Callers 3

Array.tsFile · 0.85
unappendFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected