combinatorial-0.0: Count, enumerate, rank and unrank combinatorial objects

Safe HaskellSafe
LanguageHaskell98

Combinatorics.Permutation.WithoutSomeFixpoints

Synopsis

Documentation

enumerate :: Eq a => Int -> [a] -> [[a]] Source #

enumerate n xs list all permutations of xs where the first n elements do not keep there position (i.e. are no fixpoints).

Naive but comprehensible implementation.