Re:Beautiful folds in Haskell (2016)
by danidiaz on Wednesday February 28, 2018 @03:04PM
(#16486286)
Collectors in Java >= 8 are quite reminiscent of these "beautiful folds", so much that I have wondered why the standard library lacks a proper Applicative-like composition method, which is so useful for avoiding multiple traversals of the data.
Something like it can be defined: https://stackoverflow.com/questions/30210547/grouping-by-obj... although the signature is a bit ugly.