Cartesian product of two or more lists: Difference between revisions
Cartesian product of two or more lists (view source)
Revision as of 15:57, 22 January 2024
, 4 months ago→{{header|langur}}: updated to use mapX() instead of X()
m (→{{header|Wren}}: Minor tidy) |
Langurmonkey (talk | contribs) (→{{header|langur}}: updated to use mapX() instead of X()) |
||
Line 2,974:
</pre>
=={{header|langur}}==
<syntaxhighlight lang="langur">writeln mapX(f(... .x) .x, [1, 2], [3, 4]) == [[1, 3], [1, 4], [2, 3], [2, 4]]
writeln mapX(f(... .x) .x, [3, 4], [1, 2]) == [[3, 1], [3, 2], [4, 1], [4, 2]]
▲{{works with|langur|0.8.3}}
writeln
writeln()
writeln
writeln()
writeln
writeln()
writeln
writeln()</syntaxhighlight>
Line 3,004 ⟶ 3,002:
[]
</pre>
=={{header|Lua}}==
=== Functional ===
|