//#region src/cartesian.d.ts /** * Computes the Cartesian product of multiple arrays. * * @template T * the type of elements in the input arrays. * @param {...T[][]} all * a variadic number of arrays to compute the Cartesian product of. * @returns {T[][]} * An array containing all possible combinations of elements from the input * arrays, where each combination is represented as an array. * * @remarks * pure function * * @example * ```typescript * const result = cartesian([1, 2], ['a', 'b']); * // result: [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']] * ``` */ declare function cartesian(...all: T[][]): T[][]; //#endregion export { cartesian }; //# sourceMappingURL=cartesian.d.ts.map