:: (a -> b) -> [a] -> b package:extra

Version on concatMap generalised to a Monoid rather than just a list.
mconcatMap Sum [1,2,3] == Sum 6
\f xs -> mconcatMap f xs == concatMap f xs
A strict version of sum, using a custom valuation function.
sumOn' read ["1", "2", "3"] == 6
A strict version of product, using a custom valuation function.
productOn' read ["1", "2", "4"] == 8
A generalization of sumOn' to Foldable instances.
A generalization of productOn' to Foldable instances.