-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'transform' operator that can be applied to various monad types #19
Comments
One design question is whether to always return a unique task ( If we did then the caller would need to call I expect that most use-cases will not need a shared task result, however, so returning a unique task is probably going to be more efficient. |
Still need to add fmap support for A similar issue arises with fmap implementation for |
Commit 8e72893 adds I've decided to go with following transformations when
|
Support applying a function that transforms value of type A to value of type B to:
task<A>
to producetask<B>
(etc. for other task types)generator<A>
to prouducegenerator<B>
(etc. for other generator types)Example syntax:
For
task<T>
this is kind of similar to the proposedstd::future<T>::then()
method.The text was updated successfully, but these errors were encountered: