cross¶
Cross product
x cross y cross[x;y]
Returns the cross (or Cartesian) product (that is, all possible pairings) of lists x and y.
Use (cross/) to create the cross product of 3 or more lists.
cross can work on tables and dictionaries.
The function cross is equivalent to {raze x,/:\:y}.
Note
As a result of this equivalence and the way the Join operator (,) works, if the items of x and y are lists themselves, they are joined together with no regards to the extra level of nesting.
To keep the nesting, enlist the sublists.
Although they are displayed identically, the two results are not the same!