//#region src/Array/insertAllAt.d.ts /** * # insertAllAt * * ```ts * function Array.insertAllAt( * target: readonly T[], * idx: number, * values: Iterable>, * ): readonly T[] * ``` * * Inserts all elements from `values` at the specified `index` in `array`, returning a new array with the inserted elements. Supports iterables for the `values` parameter. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.insertAllAt([1, 2, 3], 1, [10, 20]); // [1, 10, 20, 2, 3] * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 3], Array.insertAllAt(1, [10, 20])); // [1, 10, 20, 2, 3] * ``` * */ declare const insertAllAt: { (idx: number, values: Iterable>): (target: T[]) => T[]; (idx: number, values: Iterable>): (target: readonly T[]) => readonly T[]; (target: T[], idx: number, values: Iterable>): T[]; (target: readonly T[], idx: number, values: Iterable>): readonly T[]; }; //#endregion export { insertAllAt };