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

Combinatorics.Permutation.WithoutSomeFixpoints

Synopsis

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).

enumerate n xs

xs

n

Naive but comprehensible implementation.

numbers :: Num a => [[a]] Source #

http://oeis.org/A047920