diff options
Diffstat (limited to 'H26.hs')
-rw-r--r-- | H26.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -0,0 +1,5 @@ +combination :: Int -> [a] -> [[a]] +combination 0 _ = [[]] +combination _ [] = [] +combination c (x:xs) = (map (x:) (combination (c-1) xs)) ++ (combination c xs) + |