3 ms·
Yeah, but they solve basically the same problem. As I mentioned, foldMap requires associativity. Per your link I guess it also requires existence of a neutral
by im3w1l 7y ago
Yeah, but they solve basically the same problem.
As I mentioned, foldMap requires associativity. Per your link I guess it also requires existence of a neutral element (whereas foldr instead makes you specify a starting element).