News for hackers. Stuff that matters.
Re:Overthinking Fizzbuzz with Monoids by KirinDave on Thursday September 14, 2017 @12:29AM (#15245015)
Associative arrays form a monoid, so this code is (perhaps surprisingly) a special case of the monoid library.

It has been awhile, but I remember not including a version like this because it's a bit intense to throw a sort (either implicit or explicit) into this without even commenting on it.

Re:Overthinking Fizzbuzz with Monoids by imtringued on Thursday September 14, 2017 @06:13AM (#15246447)
You can form a monoid with almost everything. It'S not a very interesting concept that requires more attention than maybe reading the definition. These blogposts are pointless in my opinion. The title makes as much sense as "Overthinking cooking with edibles".
Re:Overthinking Fizzbuzz with Monoids by KirinDave on Thursday September 14, 2017 @11:10AM (#15248787)
Monoids are certainly not the most "interesting" thing, but neither are arrays, or even sets. But they're quite important and useful in a parametrically polymorpic world. That's why it's worth introducing them to people new to FP.

Ultimately, these sorts of posts are feeders to conversations about other bigger abstractions like Functors.

The title and the post both grant that for fizzbuzz as asked in many settings, but without a simple domain these conversations tend to explode in complexity. So there it is.