Combinations. This module is depracated; it is equivalent to the module Compositions, but it turns out that "compositions" is the accepted name. I will remove this module in the future.

- combinations' :: [Int] -> Int -> [[Int]]
- countCombinations' :: [Int] -> Int -> Integer
- allCombinations' :: [Int] -> [[[Int]]]
- combinations :: Int -> Int -> [[Int]]
- countCombinations :: Int -> Int -> Integer
- combinations1 :: Int -> Int -> [[Int]]
- countCombinations1 :: Int -> Int -> Integer

# Documentation

Combinations fitting into a given shape and having a given degree. The order is lexicographic, that is,

sort cs == cs where cs = combinations' shape k

countCombinations' :: [Int] -> Int -> IntegerSource

allCombinations' :: [Int] -> [[[Int]]]Source

All combinations fitting into a given shape.

countCombinations :: Int -> Int -> IntegerSource

# = \binom { len+d-1 } { len-1 }

countCombinations1 :: Int -> Int -> IntegerSource