Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- module Data.Foldable
- sum' :: (Foldable f, Num a) => f a -> a
- product' :: (Foldable f, Num a) => f a -> a
- sumOn' :: (Foldable f, Num b) => (a -> b) -> f a -> b
- productOn' :: (Foldable f, Num b) => (a -> b) -> f a -> b
- anyM :: (Foldable f, Monad m) => (a -> m Bool) -> f a -> m Bool
- allM :: (Foldable f, Monad m) => (a -> m Bool) -> f a -> m Bool
- orM :: (Foldable f, Monad m) => f (m Bool) -> m Bool
- andM :: (Foldable f, Monad m) => f (m Bool) -> m Bool
- findM :: (Foldable f, Monad m) => (a -> m Bool) -> f a -> m (Maybe a)
- firstJustM :: (Foldable f, Monad m) => (a -> m (Maybe b)) -> f a -> m (Maybe b)
Documentation
module Data.Foldable
productOn' :: (Foldable f, Num b) => (a -> b) -> f a -> b Source #
A generalization of productOn'
to Foldable
instances.
firstJustM :: (Foldable f, Monad m) => (a -> m (Maybe b)) -> f a -> m (Maybe b) Source #
A generalization of firstJustM
to Foldable
instances.