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 :: Text -> DataFrame -> Maybe Doubledataframe DataFrame No documentation available.
sum :: forall a f (d :: Dimension) . (Num a, Foldable f) => f (Quantity d a) -> Quantity d adimensional Numeric.Units.Dimensional The sum of all elements in a foldable structure.
>>> sum ([] :: [Mass Double]) 0.0 kg
>>> sum [12.4 *~ meter, 1 *~ foot] 12.7048 m
-
dimensional Numeric.Units.Dimensional.FixedPoint The sum of all elements in a list.
sum :: forall a f (d :: Dimension) . (Num a, Foldable f) => f (Quantity d a) -> Quantity d adimensional Numeric.Units.Dimensional.Prelude The sum of all elements in a foldable structure.
>>> sum ([] :: [Mass Double]) 0.0 kg
>>> sum [12.4 *~ meter, 1 *~ foot] 12.7048 m
sum :: (Foldable t, Num a) => t a -> adistribution-opensuse OpenSuse.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 :: (Unbox a, Num a) => Histogram bin a -> ahistogram-fill Data.Histogram No documentation available.
sum :: forall (v :: Type -> Type) a bin . (Vector v a, Num a) => Histogram v bin a -> ahistogram-fill Data.Histogram.Generic Sum contents of all bins
-
invertible Data.Invertible.Monoid (Un)wrap the Sum monoid.
sum :: (Num a, Monad m) => Stream m a -> m aleveldb-haskell Data.Stream.Monadic No documentation available.
sum :: Aggregator (Field a) (Field a)opaleye Opaleye.Aggregate Sum all rows in a group. WARNING! The type of this operation is wrong and will crash at runtime when the argument is SqlInt4 or SqlInt8. For those use sumInt4 or sumInt8 instead.