Cartesian product of two or more lists: Difference between revisions

Content added Content deleted
imported>Maxima enthusiast
Line 2,006: Line 2,006:
[[File:Fōrmulæ - Cartesian product of two or more lists 03.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 03.png]]


[[File:Fōrmulæ - Cartesian product of two or more lists 04.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 04a.png]]


'''Test case 2.''' With an empty list
'''Test case 2.''' With an empty list
Line 2,012: Line 2,012:
[[File:Fōrmulæ - Cartesian product of two or more lists 05.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 05.png]]


[[File:Fōrmulæ - Empty list.png]]
[[File:Fōrmulæ - Empty list a.png]]


[[File:Fōrmulæ - Cartesian product of two or more lists 06.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 06.png]]


[[File:Fōrmulæ - Empty list.png]]
[[File:Fōrmulæ - Empty list a.png]]


'''Test case 3.''' Extra credit. n-ary cartesian product
'''Test case 3.''' Extra credit. n-ary cartesian product
Line 2,022: Line 2,022:
[[File:Fōrmulæ - Cartesian product of two or more lists 07.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 07.png]]


[[File:Fōrmulæ - Cartesian product of two or more lists 08.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 08a.png]]


[[File:Fōrmulæ - Cartesian product of two or more lists 09.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 09.png]]


[[File:Fōrmulæ - Cartesian product of two or more lists 10.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 10a.png]]


[[File:Fōrmulæ - Cartesian product of two or more lists 11.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 11.png]]


[[File:Fōrmulæ - Empty list.png]]
[[File:Fōrmulæ - Empty list a.png]]


=={{header|Go}}==
=={{header|Go}}==