folktale / data.task

Migrating to https://github.com/origamitower/folktale
MIT License
425 stars 45 forks source link

Added function to sequentially process futures without passing intermedi... #16

Closed TrevorBasinger closed 10 years ago

TrevorBasinger commented 10 years ago

...ate values.

TrevorBasinger commented 10 years ago

I'm not sure how well this fits the fantasy land spec, but this solved a problem for me in another project and I'm hoping it might have a place in your implementation. Cheers.

robotlolita commented 10 years ago

You can use the sequence function provided by https://github.com/folktale/control.monads/blob/master/lib/basic.js#L44-L59. With the advantage that it works for any monad, not just futures :)

TrevorBasinger commented 10 years ago

Ah! Okay, thanks so much. I wondered where some of the more common functions were. On Sep 21, 2014 8:55 AM, "robotlolita" notifications@github.com wrote:

You can use the sequence function provided by https://github.com/folktale/control.monads/blob/master/lib/basic.js#L44-L59. With the advantage that it works for any monad, not just futures :)

— Reply to this email directly or view it on GitHub https://github.com/folktale/data.future/pull/16#issuecomment-56299430.