cartesianProduct
Perform a Cartesian product of arrays
164 bytes
Usage
Create an n-ary Cartesian product from the given arrays. The inputs are arrays, and the output is an array of arrays representing all possible combinations where the first element is from the first array, the second element is from the second array, and so on.