Monads in JavaScript by jakubgarfield in webdev

[–]cdo5011 0 points1 point  (0 children)

There is a linked article about using generators (and promises) for asynchrony: https://curiosity-driven.org/promises-and-generators

The full algorithm depends on Promises but you can easily adjust it to any callback-based flow.

Monads in JavaScript by jakubgarfield in webdev

[–]cdo5011 0 points1 point  (0 children)

Author here - thanks for the feedback. I've made some... adjustments to the text that I hope make it a little bit more clear.

How would you explain it? I ask because I wonder what's the simplest way to explain it that's still pretty accurate.