Hoogle Search

Within LTS Haskell 24.25 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. sum :: (Unbox a, Num a) => Vector a -> a

    rio RIO.Vector.Unboxed

    No documentation available.

  2. sum :: Vector v Double => v Double -> Double

    statistics Statistics.Sample.Internal

    No documentation available.

  3. sum :: Powers -> Double

    statistics Statistics.Sample.Powers

    The sum of elements in the original Sample. This is the sample's first simple power.

  4. sum :: (Summation s, Foldable f) => (s -> Double) -> f Double -> Double

    math-functions Numeric.Sum

    Sum a collection of values. Example: foo = sum kbn [1,2,3]

  5. sum :: (Foldable t, Num a) => t a -> a

    Cabal-syntax Distribution.Compat.Prelude

    No documentation available.

  6. sum :: (C sh, Storable a, Num a) => Array sh a -> a

    comfort-array Data.Array.Comfort.Storable

    \(Array16 xs)  ->  Array.sum xs == sum (Array.toList xs)
    

  7. sum :: (C sh, Storable a, Num a) => Array sh a -> a

    comfort-array Data.Array.Comfort.Storable.Unchecked

    \(Array16 xs)  ->  Array.sum xs == sum (Array.toList xs)
    

  8. sum :: C a => [a] -> a

    non-negative Numeric.NonNegative.Class

    No documentation available.

  9. sum :: forall a f . (Foldable f, Num a) => f a -> a

    relude Relude.Foldable.Fold

    Stricter version of sum.

    >>> sum [1..10]
    55
    

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

Page 10 of many | Previous | Next