crossLists
lib.crossLists
Docs pulled from | This Revision | about 1 hour ago
Return the image of the cross product of some lists by a function.
Examples
lib.lists.crossLists
usage example
crossLists (x: y: "${toString x}${toString y}") [[1 2] [3 4]]
=> [ "13" "14" "23" "24" ]
The following function call is equivalent to the one deprecated above:
mapCartesianProduct (x: "${toString x.a}${toString x.b}") { a = [1 2]; b = [3 4]; }
=> [ "13" "14" "23" "24" ]