foldMap package:mono-traversable

Synonym for ofoldMap
Synonym for ofoldMap1Ex
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"