cross function:

Join a few list (i.e. Cartesian product) into a new list. All the arguments must be lists. The output will be a list of object, with keys in the format ".i".

Examples:

  • running: (cross ["one", "two"], [1, 2], [true], [false]) will give: [{".0": "one", ".1": 1, ".2": true, ".3": false}, {".0": "two", ".1": 1, ".2": true, ".3": false}, {".0": "one", ".1": 2, ".2": true, ".3": false}, {".0": "two", ".1": 2, ".2": true, ".3": false}]

  • running: (cross ["one", "two", "three"], [1, 2, 3], 6) will return nothing