Cartesian product of two or more lists: Difference between revisions

Content added Content deleted
m (Corrected formatting.)
Line 2,046: Line 2,046:
{3, 4} x {1, 2} = {(3, 1), (3, 2), (4, 1), (4, 2)}
{3, 4} x {1, 2} = {(3, 1), (3, 2), (4, 1), (4, 2)}
{1, 2} x {} = {}
{1, 2} x {} = {}
{} x {1, 2} = {}</lang>
{} x {1, 2} = {}</pre>


=={{header|OCaml}}==
=={{header|OCaml}}==