haskus-utils-1.5: Haskus utility modules

Safe HaskellSafe
LanguageHaskell2010

Haskus.Utils.Maths

Synopsis

Documentation

gcds :: Integral a => [a] -> a Source #

Return the GCD of a list of integrals

>>> gcds [2,4,8]
2

lcms :: Integral a => [a] -> a Source #

Return the LCM of a list of integrals

>>> lcms [2,3,5]
30