News for hackers. Stuff that matters.
Re:JavaScript Promises Discussion: Make Them Monadic? (2013) by icc97 on Thursday February 15, 2018 @06:39PM (#16388770)
Here's a half baked explanation, as in just the flatmap part.

map is understood in javascript.

So you 'just' need to make the leap to flatmap. Which is mapping something and flattening the result.

So still you need to learn is what flatten is. But that's not too hard to learn.

Try the funfunfunction video [0]

[0]: https://m.youtube.com/watch?v=9QveBbn7t_c

There are no comments on this comment yet.