Cartesian product of two or more lists: Difference between revisions
Cartesian product of two or more lists (view source)
Revision as of 14:24, 4 March 2024
, 3 months ago→{{header|langur}}
Langurmonkey (talk | contribs) |
Langurmonkey (talk | contribs) |
||
Line 2,996:
</pre>
=={{header|langur}}==
<syntaxhighlight lang="langur">
writeln mapX(f(... .x) .x, [3, 4], [1, 2]) == [[3, 1], [3, 2], [4, 1], [4, 2]]▼
writeln mapX
writeln mapX
writeln mapX(.X, [1, 2], []) == []
writeln()
writeln mapX
writeln()
writeln mapX
writeln()
writeln mapX
writeln()</syntaxhighlight>
|