DEV Community

Discussion on: From Callback Hell to Callback Heaven

Collapse
 
zaboco profile image
Bogdan Zaharia

Really nice idea. I guess that, since the map |> flatten pattern is pretty common, a flatMap would come in handy.
Also, somehow related is this article series. The link is to the last post, which links to the first two.

Collapse
 
loreanvictor profile image
Eugene Ghanizadeh

yes, I think thats what actual libraries like RxJS typically have, and for that particular reason (though I do like the explicitness of flatten operator in callbags for example).