fast-arithmetic 0.2.2.0 → 0.2.2.1
raw patch · 2 files changed
+4/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- fast-arithmetic.cabal +1/−1
- src/Numeric/Pure.hs +3/−0
fast-arithmetic.cabal view
@@ -1,5 +1,5 @@ name: fast-arithmetic-version: 0.2.2.0+version: 0.2.2.1 synopsis: Fast functions on integers. description: Fast functions for number theory and combinatorics with a high level of safety guaranteed by [ATS](http://www.ats-lang.org/). This package also provides a 'Storable' instance for GMP's @mpz@ type.
src/Numeric/Pure.hs view
@@ -31,6 +31,9 @@ {-# SPECIALIZE hsDoubleFactorial :: Int -> Int #-} -- | See [here](http://mathworld.wolfram.com/Derangement.html).+--+-- > λ:> fmap derangement [0..10] :: [Integer]+-- > [1,0,1,2,9,44,265,1854,14833,133496,1334961] derangement :: (Integral a) => Int -> a derangement n = derangements !! n