import * as tracing_1 from "../../../../Tracing";
const fileName_1 = "(@effect-ts/system): _src/Collections/Immutable/Chunk/api/splitAt.ts";
import * as Tp from "../../Tuple";
import * as Chunk from "../core";
/**
 * Returns two splits of this chunk at the specified index.
 */

export function splitAt_(self, n) {
  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) {
  return self => splitAt_(self, n);
}
//# sourceMappingURL=splitAt.js.map