We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

O.F.K. • 3 years ago

I actually did know `bind`, `map` and the rest of their "elevated" friends (as Mr. Wlaschin calls them) beforehand, and yet, this only-code-minimal-commentary example is one of the better ones I've seen around.

Only wish you'd use the operators' syntax (e.g. `<*>, <+>`, yes, I know the last one is for applicatives) in one of your examples since that's what we're going to face "in the wild".

Still, great (minimal) example!
Kudos!

Jon Sagara • 5 years ago

I've never quite grokked map and bind until now. Thanks!

Ian Russell • 5 years ago

I think it would be beneficial for future you to have implementations of your homerolled functions in the post.

Jonathan Channon • 5 years ago

I do 😄

Ian Russell • 5 years ago

Oops. You do!

Jonathan Channon • 5 years ago

And it's definitely not stolen re-purposed from your blog post here https://www.softwarepark.cc...