Jump to content

Cartesian product of two or more lists: Difference between revisions

m
(add freebasic)
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
781

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.