Closed TrevorBasinger closed 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.
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 :)
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.
...ate values.