Cartesian product of two or more lists: Difference between revisions
Content added Content deleted
(add freebasic) |
m (→{{header|FreeBASIC}}: fix) |
||
Line 877: | 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. |
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>#define MAXLEN 64 |
<lang freebasic>#define MAXLEN 64 |
||
type listitem ' An item of a list may be a number |
type listitem ' An item of a list may be a number |