effect-io-ai

Package: effect
Module: List

List.splitAt

Splits the specified list into two lists at the specified index.

Signature

declare const splitAt: { (n: number): <A>(self: List<A>) => [beforeIndex: List<A>, fromIndex: List<A>]; <A>(self: List<A>, n: number): [beforeIndex: List<A>, fromIndex: List<A>]; }

Source

Since v2.0.0