haskus-utils-1.5: Haskus utility modules

Haskus.Utils.Maths

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

Return the GCD of a list of integrals

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

>>>

gcds [2,4,8]

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

Return the LCM of a list of integrals

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

lcms [2,3,5]