Hoogle Search

Within LTS Haskell 24.46 (ghc-9.10.3)

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

  1. sumOf :: forall k a (is :: IxList) s . (Is k A_Fold, Num a) => Optic' k is s a -> s -> a

    optics-core Optics.Fold

    Calculate the Sum of every number targeted by a Fold.

    >>> sumOf each (5,6)
    11
    
    >>> sumOf folded [1,2,3,4]
    10
    
    >>> sumOf (folded % each) [(1,2),(3,4)]
    10
    
    sumsumOf folded
    
    This operation may be more strict than you would expect. If you want a lazier version use \o -> getSum . foldMapOf o Sum

  2. summing :: forall k l (is :: IxList) s a (js :: IxList) . (Is k A_Fold, Is l A_Fold) => Optic' k is s a -> Optic' l js s a -> Fold s a

    optics-core Optics.Fold

    Return entries of the first Fold, then the second one.

    >>> toListOf (_1 % ix 0 `summing` _2 % ix 1) ([1,2], [4,7,1])
    [1,7]
    
    For the traversal version see adjoin.

  3. sumElements :: Container c e => c e -> e

    hmatrix Numeric.LinearAlgebra

    the sum of elements

  4. summary_ :: Term arg result => arg -> result

    lucid Lucid.Html5

    summary element or summary attribute

  5. sumProbabilities :: DiscreteDistr d => d -> Int -> Int -> Double

    statistics Statistics.Distribution

    Sum probabilities in inclusive interval.

  6. sumF :: Foldable f => f Double -> Double

    statistics Statistics.Sample.Internal

    No documentation available.

  7. sumOf :: Num a => Getting (Endo (Endo a)) s a -> s -> a

    diagrams-lib Diagrams.Prelude

    Calculate the Sum of every number targeted by a Fold.

    >>> sumOf both (5,6)
    11
    
    >>> sumOf folded [1,2,3,4]
    10
    
    >>> sumOf (folded.both) [(1,2),(3,4)]
    10
    
    >>> import Data.Data.Lens
    
    >>> sumOf biplate [(1::Int,[]),(2,[(3::Int,4::Int)])] :: Int
    10
    
    sumsumOf folded
    
    This operation may be more strict than you would expect. If you want a lazier version use ala Sum . foldMapOf
    sumOf _1 :: Num a => (a, b) -> a
    sumOf (folded . _1) :: (Foldable f, Num a) => f (a, b) -> a
    
    sumOf :: Num a => Getter s a     -> s -> a
    sumOf :: Num a => Fold s a       -> s -> a
    sumOf :: Num a => Lens' s a      -> s -> a
    sumOf :: Num a => Iso' s a       -> s -> a
    sumOf :: Num a => Traversal' s a -> s -> a
    sumOf :: Num a => Prism' s a     -> s -> a
    

  8. sumPowerSeries :: Double -> Sequence Double -> Double

    math-functions Numeric.Series

    Calculate sum of series <math> Calculation is stopped when next value in series is less than ε·sum.

  9. sumSeries :: Sequence Double -> Double

    math-functions Numeric.Series

    Calculate sum of series <math> Summation is stopped when <math> where ε is machine precision (m_epsilon)

  10. sumVector :: (Vector v Double, Summation s) => (s -> Double) -> v Double -> Double

    math-functions Numeric.Sum

    O(n) Sum a vector of values.

Page 44 of many | Previous | Next