UNPKG

@extra-array/swap

Version:
11 lines (10 loc) 250 B
declare module "@extra-array/swap" { /** * Exchanges two values. * @param x an array * @param i an index * @param j another index */ declare function swap<T>(x: T[], i: number, j: number): T[]; export = swap; //# sourceMappingURL=swap.d.ts.map}