You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a simple way to compose this out of other functions already provided? It seems like no matter how I go about this in my code I'm doing a lot of ugly manual wrapping (which does work, it just feels extremely inelegant).
Thank you!
The text was updated successfully, but these errors were encountered:
Interesting, thanks. Funny enough I'm using something a bit different, never really thought hard if I had made a poor trade-off (other than limited re-usability over composing with lift).
letandIfOk= (fut, f) =>Future.map(fut, res =>Belt.Result.flatMap(res, f));
Happy to chip in a PR for discussion if there is some consensus around adding a new function.
First thank you for this library, it's been a joy to work with over Js.Promise.
A question: I feel like I'm constantly reaching for functions of signature:
Is there a simple way to compose this out of other functions already provided? It seems like no matter how I go about this in my code I'm doing a lot of ugly manual wrapping (which does work, it just feels extremely inelegant).
Thank you!
The text was updated successfully, but these errors were encountered: