Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
foldb :: (a -> a -> a) -> a -> [a] -> a Source
Balanced fold, minimizing depth of call tree. Assumes associative operator.
Often much more efficient than foldl/foldr when type a
is IReal
and the list is long.
foldb1 :: (a -> a -> a) -> [a] -> a Source
Balanced fold for associative operator over non-empty list.