Skip to content
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

Monad operator and visible argument don't get along #1

Closed
jcheng5 opened this issue Apr 25, 2017 · 1 comment
Closed

Monad operator and visible argument don't get along #1

jcheng5 opened this issue Apr 25, 2017 · 1 comment

Comments

@jcheng5
Copy link
Member

jcheng5 commented Apr 25, 2017

library(promise)
library(monads)
resolved(cars) %>>% head() %>>% print()

This prints one row instead of 6. I believe this is because then's onFulfilled argument can optionally take a second argument visible, and this is being treated as the second argument to head() (and to print() for that matter). Probably the %>>% interface should only pass along the first argument.

@jcheng5
Copy link
Member Author

jcheng5 commented Sep 7, 2017

Long since fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant