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.

  1. 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
    

  2. sum :: forall (v :: Type -> Type) a (n :: Nat) . (Vector v a, Num a) => Vector v n a -> a

    vector-sized Data.Vector.Generic.Sized

    O(n) Compute the sum of the elements.

  3. sum :: forall a (n :: Nat) . (Prim a, Num a) => Vector n a -> a

    vector-sized Data.Vector.Primitive.Sized

    O(n) Compute the sum of the elements.

  4. sum :: forall a (n :: Nat) . Num a => Vector n a -> a

    vector-sized Data.Vector.Sized

    O(n) Compute the sum of the elements.

  5. sum :: forall a (n :: Nat) . (Storable a, Num a) => Vector n a -> a

    vector-sized Data.Vector.Storable.Sized

    O(n) Compute the sum of the elements.

  6. sum :: forall a (n :: Nat) . (Unbox a, Num a) => Vector n a -> a

    vector-sized Data.Vector.Unboxed.Sized

    O(n) Compute the sum of the elements.

  7. sum :: Additive n => [n] -> n

    basement Basement.Compat.ExtList

    Sum the element in a list

  8. sum :: Stats -> Double

    ekg-core System.Metrics.Distribution

    Sum of values

  9. sum :: Stats -> !Double

    ekg-core System.Metrics.Distribution.Internal

    Sum of values

  10. sum :: (Index ix, Source r e, Num e) => Array r ix e -> e

    massiv Data.Massiv.Array

    O(n) - Compute sum of all elements.

Page 11 of many | Previous | Next