// ets_tracing: off import * as Tp from "../../Tuple/index.js" import * as Chunk from "../core.js" /** * Returns two splits of this chunk at the specified index. */ export function splitAt_( self: Chunk.Chunk, n: number ): Tp.Tuple<[Chunk.Chunk, Chunk.Chunk]> { return Tp.tuple(Chunk.take_(self, n), Chunk.drop_(self, n)) } /** * Returns two splits of this chunk at the specified index. * * @ets_data_first splitAt_ */ export function splitAt( n: number ): (self: Chunk.Chunk) => Tp.Tuple<[Chunk.Chunk, Chunk.Chunk]> { return (self) => splitAt_(self, n) }