Cartesian product of two or more lists: Difference between revisions
Cartesian product of two or more lists (view source)
Revision as of 02:48, 1 August 2023
, 9 months ago→{{header|Fōrmulæ}}
mNo edit summary |
|||
Line 1,716:
=={{header|Fōrmulæ}}==
'''Solution'''
No program is needed, the cartesian product is an intrinsic operation in Fōrmulæ
'''Test case 1.''' No commutativity
[[File:Fōrmulæ - Cartesian product of two or more lists 01.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 02.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]]
'''Test case 2.''' With an empty list
[[File:Fōrmulæ - Cartesian product of two or more lists 05.png]]
[[File:Fōrmulæ - Empty list.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 06.png]]
[[File:Fōrmulæ - Empty list.png]]
'''Test case 3.''' Extra credit. n-ary cartesian product
[[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 09.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 10.png]]
[[File:Fōrmulæ - Cartesian product of two or more lists 11.png]]
[[File:Fōrmulæ - Empty list.png]]
=={{header|Go}}==
'''Basic Task'''
|