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

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

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

    vector-sized Data.Vector.Sized

    O(n) Compute the sum of the elements.

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

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

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

    basement Basement.Compat.ExtList

    Sum the element in a list

  7. sum :: Stats -> Double

    ekg-core System.Metrics.Distribution

    Sum of values

  8. sum :: Stats -> !Double

    ekg-core System.Metrics.Distribution.Internal

    Sum of values

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

    ghc-internal GHC.Internal.Data.Foldable

    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 *
    

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

    ghc-internal GHC.Internal.Data.List

    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 *
    

Page 11 of many | Previous | Next