combinat-0.2: Generation of various combinatorial objects.
Math.Combinat.Sets
Description
Subsets.
Synopsis
kSublists :: Int -> [a] -> [[a]]Source
Sublists of a list having given number of elements.
sublists :: [a] -> [[a]]Source
All sublists of a list.
countKSublists :: Int -> Int -> IntegerSource
# = binom { n } { k }.
# = binom { n } { k }
countSublists :: Int -> IntegerSource
# = 2^n.
# = 2^n