Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
paulajohnson
on Sept 14, 2017
|
parent
|
context
|
favorite
| on:
Overthinking Fizzbuzz with Monoids
For those who don't speak Haskell, its worth noting that "<>" is the monoid concatenation operator. The "~>" operator returns a function type "a -> Maybe String". A function type is a monoid if its return type is a monoid, so this works.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: