Cartesian product of two or more lists: Difference between revisions
Cartesian product of two or more lists (view source)
Revision as of 12:39, 14 June 2021
, 3 years ago→{{header|Mathematica}}
MaiconSoft (talk | contribs) (Added Delphi example) |
|||
Line 2,571:
</lang>
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>cartesianProduct[args__] := Flatten[Outer[List, args], Length[{args}] - 1]</lang>
|