Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
sum :: forall a f . (Foldable f, Num a) => f a -> arelude Relude.Foldable.Fold Stricter version of sum.
>>> sum [1..10] 55
sum :: (Monad m, Num a) => Stream (Of a) m r -> m (Of a r)streaming Streaming.Prelude Fold a Stream of numbers into their sum with the return value
mapped S.sum :: Stream (Stream (Of Int)) m r -> Stream (Of Int) m r
>>> S.sum $ each [1..10] 55 :> ()
>>> (n :> rest) <- S.sum $ S.splitAt 3 $ each [1..10] >>> System.IO.print n 6 >>> (m :> rest') <- S.sum $ S.splitAt 3 rest >>> System.IO.print m 15 >>> S.print rest' 7 8 9 10
sum :: forall (v :: Type -> Type) a (n :: Nat) . (Vector v a, Num a) => Vector v n a -> avector-sized Data.Vector.Generic.Sized O(n) Compute the sum of the elements.
sum :: forall a (n :: Nat) . (Prim a, Num a) => Vector n a -> avector-sized Data.Vector.Primitive.Sized O(n) Compute the sum of the elements.
sum :: forall a (n :: Nat) . Num a => Vector n a -> avector-sized Data.Vector.Sized O(n) Compute the sum of the elements.
sum :: forall a (n :: Nat) . (Storable a, Num a) => Vector n a -> avector-sized Data.Vector.Storable.Sized O(n) Compute the sum of the elements.
sum :: forall a (n :: Nat) . (Unbox a, Num a) => Vector n a -> avector-sized Data.Vector.Unboxed.Sized O(n) Compute the sum of the elements.
-
basement Basement.Compat.ExtList Sum the element in a list
-
ekg-core System.Metrics.Distribution Sum of values
-
ekg-core System.Metrics.Distribution.Internal Sum of values