Cartesian product of two or more lists: Difference between revisions
Cartesian product of two or more lists (view source)
Revision as of 15:22, 12 December 2020
, 3 years ago→{{header|FreeBASIC}}: fix
(add freebasic) |
m (→{{header|FreeBASIC}}: fix) |
||
Line 877:
I'll leave the extra credit part for someone else. It's just going to amount to repeatedly finding Cartesian products and [[Flatten a list|flattening]] the result, so considerably less interesting than Cartesian products where the list items themselves can be lists.
<lang freebasic>#define MAXLEN 64
type listitem ' An item of a list may be a number
|