/** * Returns two splits of this chunk at the specified index. * * @tsplus static Chunk.Aspects splitAt * @tsplus pipeable Chunk splitAt */ export function splitAt(n: number) { return (self: Chunk): readonly [Chunk, Chunk] => [self.take(n), self.drop(n)] }