Anonymous user
Cartesian product of two or more lists: Difference between revisions
Cartesian product of two or more lists (view source)
Revision as of 19:27, 25 January 2020
, 4 years ago→{{header|Tailspin}}: syntax update
m (→{{header|Tailspin}}: syntax update) |
m (→{{header|Tailspin}}: syntax update) |
||
Line 3,318:
<lang tailspin>
templates cartesianProduct
{ product: [$(1)... -> [$]], rest: $(2..
<{ rest: <[](0)> }> $.product !
<> def m: $.rest(1);
{ product: [$.product... -> \(def n: $; $m... -> [$n..., $] !\)], rest: $.rest(2..
end cartesianProduct
|