8 ms·
> "functions that can sensibly be used in a call to array.reduce" You can use any function you want in a fold in Haskell. You're conflating two typeclasses, Mo
by centimeter 6y ago
> "functions that can sensibly be used in a call to array.reduce"
You can use any function you want in a fold in Haskell. You're conflating two typeclasses, Monoids and Foldables, and restricting yourself to the function known in Haskell as foldMap.