Wilang Documentation1.0.0+4

setCartesian#

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.

Available in: math cells, REPL.

Syntax#

setCartesian(set1, set2)

Arguments and behavior#

Arguments must match one of the syntax forms above. Use the example as a starting point; arrays and numeric types are accepted only by compatible overloads. The example returns matrix.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
setCartesian([1, 2], [3, 4])

Expected result: matrix.

See also#

setUnion · setIntersect · setDifference · setPowerset

All functions · Math guides