Combinations with repetitions: Difference between revisions
m
→Haskell (manual recursion version): tidying
PatGarrett (talk | contribs) (* {{header|VBScript}} */ Section added) |
m (→Haskell (manual recursion version): tidying) |
||
Line 1,432:
combsWithRep k xs = comb k []
where
comb 0
comb n [] = comb (pred n
comb n peers = comb (pred n) (peers >>= nextLayer)
where
main :: IO ()
|