Anonymous user
Combinations: Difference between revisions
→{{header|Haskell}}
Line 1,029:
comb :: Int -> [a] -> [[a]]
comb 0 _ = [[]]
comb m l =
To generate combinations of integers between 0 and ''n-1'', use
|
Line 1,029:
comb :: Int -> [a] -> [[a]]
comb 0 _ = [[]]
comb m l =
To generate combinations of integers between 0 and ''n-1'', use
|