fast-arithmetic-0.3.2.5: Fast functions on integers.

Numeric.Pure

Description

Pure Haskell functions. These tend to be more general than the equivalents in ATS.

Synopsis

# Useful functions

derangement :: Integral a => Int -> a Source #

See here.

λ:> fmap derangement [0..10] :: [Integer]
[1,0,1,2,9,44,265,1854,14833,133496,1334961]