FoldBy Combinator

Suggestion for a core library function.