diff --git a/docs/src/pages/en/array/operator/cartesian.md b/docs/src/pages/en/array/operator/cartesian.md index 22a5abc..cf50969 100644 --- a/docs/src/pages/en/array/operator/cartesian.md +++ b/docs/src/pages/en/array/operator/cartesian.md @@ -16,10 +16,11 @@ An array of arrays representing the Cartesian product of the input arrays. ## Type ```ts -type cartesian = (dimensions: [number,]) => (a: A[]) => [A][]; -type cartesian = (dimensions: [number, number,]) => (a: A[]) => [A][][]; +type cartesian = () => []; +type cartesian = (a: A[]) => [A][]; +type cartesian = (a: A[], b: B[]) => [A, B][][]; //... -type cartesian = (dimensions: [number, number, number, number, number, number, number, number]) => (a: A[]) => [A][][][][][][][][]; +type cartesian = (a: A[], b: B[], c: C[], d: D[], e: E[], f: F[], g: G[], h: H[]) => [A, B, C, D, E, F, G, H][][][][][][][]; ```