
Math.Combinat.Compositions 


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


Synopsis 



Documentation 


:: [Int]  shape
 > Int  sum
 > [[Int]]   Compositions fitting into a given shape and having a given degree.
The order is lexicographic, that is,
sort cs == cs where cs = compositions' shape k






All compositions fitting into a given shape.



:: Integral a   => a  length
 > a  sum
 > [[Int]]   Compositions of a given length.




# = \binom { len+d1 } { len1 }



:: Integral a   => a  length
 > a  sum
 > [[Int]]   Positive compositions of a given length.





Produced by Haddock version 2.6.1 