setCartesian
setCartesian(set1, set2)
Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.
Try it yourself:
$1 | setCartesian([1, 2], [3, 4])
|