Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

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

  1. sum' :: (Foldable t, Semiring a) => t a -> a

    semirings Data.Semiring

    The sum' function computes the additive sum of the elements in a structure. This function is strict. For a lazy version, see sum.

  2. sumAccounts :: Account -> Account

    hledger-lib Hledger.Data.Account

    Add subaccount-inclusive balances to an account tree.

  3. sumPostings :: [Posting] -> MixedAmount

    hledger-lib Hledger.Data.Posting

    Sum all amounts from a list of postings.

  4. summary_only :: HasReportOptsNoUpdate c => Lens' c Bool

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  5. summary_only_ :: ReportOpts -> Bool

    hledger-lib Hledger.Reports.ReportOptions

    No documentation available.

  6. sumStrict :: Num a => [a] -> a

    hledger-lib Hledger.Utils

    Strict version of sum that doesn’t leak space

  7. sum1 :: C a => [a] -> a

    numeric-prelude Algebra.Additive

    Sum up all elements of a non-empty list. This avoids including a zero which is useful for types where no universal zero is available. ToDo: Should have NonEmpty type.

    \(QC.NonEmpty ns) -> A.sum ns == (A.sum1 ns :: Integer)
    

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

    numeric-prelude Algebra.Additive

    Sum the operands in an order, such that the dependencies are minimized. Does this have a measurably effect on speed? Requires associativity.

    \ns -> A.sum ns == (A.sumNestedAssociative ns :: Integer)
    

  9. sumNestedCommutative :: C a => [a] -> a

    numeric-prelude Algebra.Additive

    Make sure that the last entries in the list are equally often part of an addition. Maybe this can reduce rounding errors. The list that sum2 computes is a breadth-first-flattened binary tree. Requires associativity and commutativity.

    \ns -> A.sum ns == (A.sumNestedCommutative ns :: Integer)
    

  10. sums :: T a -> [a]

    numeric-prelude MathObj.PowerSum

    No documentation available.

Page 46 of many | Previous | Next