foldM package:mono-traversable

Synonym for ofoldM
Synonym for ofoldMap
Synonym for ofoldMap1Ex
Synonym for ofoldlM
A monadic strict left fold, together with an unwrap function. Similar to foldlUnwrap, but allows monadic actions. To be used with impurely from foldl.
Map each element of a monomorphic container to a Monoid and combine the results.
Map each element of a monomorphic container to a Monoid and combine the results.
Map each element of a monomorphic container to a semigroup, and combine the results. Note: this is a partial function. On an empty MonoFoldable, it will throw an exception. See ofoldMap1 from Data.NonNull for a total version of this function.
Map each element of a monomorphic container to a semigroup, and combine the results. Safe version of ofoldMap1Ex, only works on monomorphic containers wrapped in a NonNull.

Examples

> let xs = ncons ("hello", 1 :: Integer) [(" world", 2)]
> ofoldMap1 fst xs
"hello world"