Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sum :: (Foldable f, Monoidal m) => f m -> malgebra Numeric.Algebra No documentation available.
sum :: (Foldable f, Monoidal m) => f m -> malgebra Numeric.Algebra.Class No documentation available.
sum :: (MonoFoldable mono, Num (Element mono)) => mono -> Element monoclassy-prelude-yesod ClassyPrelude.Yesod Synonym for osum
sum :: (Foldable t, Num a) => t a -> aconstrained-categories Control.Category.Constrained.Prelude The sum function computes the sum of the numbers of a structure.
Examples
Basic usage:>>> sum [] 0
>>> sum [42] 42
>>> sum [1..10] 55
>>> sum [4.1, 2.0, 1.7] 7.8
>>> sum [1..] * Hangs forever *
sum :: (Foldable t, Num a) => t a -> aconstrained-categories Control.Category.Hask The sum function computes the sum of the numbers of a structure.
Examples
Basic usage:>>> sum [] 0
>>> sum [42] 42
>>> sum [1..10] 55
>>> sum [4.1, 2.0, 1.7] 7.8
>>> sum [1..] * Hangs forever *
sum :: DistributionUpdate -> Maybe SplitInt64gogol-dataflow Gogol.Dataflow Use an int64 since we'd prefer the added precision. If overflow is a common problem we can detect it and use an additional int64 or a double.
sum :: FloatingPointMean -> Maybe Doublegogol-dataflow Gogol.Dataflow The sum of all values being aggregated.
sum :: IntegerMean -> Maybe SplitInt64gogol-dataflow Gogol.Dataflow The sum of all values being aggregated.
sum :: DistributionUpdate -> Maybe SplitInt64gogol-dataflow Gogol.Dataflow.Types Use an int64 since we'd prefer the added precision. If overflow is a common problem we can detect it and use an additional int64 or a double.
sum :: FloatingPointMean -> Maybe Doublegogol-dataflow Gogol.Dataflow.Types The sum of all values being aggregated.