Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parenthesis Semantics #3

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

Open
yikelu opened this issue May 16, 2012 · 0 comments
Open

Parenthesis Semantics #3

yikelu opened this issue May 16, 2012 · 0 comments

Comments

@yikelu
Copy link
Contributor

yikelu commented May 16, 2012

Rpipe.eval does not handle parentheses as I'd expect. Sample usage...

c(1:10, NA) %|% (sum %|% Curry(na.rm=TRUE) ) ()

I would expect here that the (sum %|% Curry(na.rm=TRUE)) would get evaluated first, creating a function, then the bound parentheses would create a function call, finally the c(1:10, NA) would get piped to it.

According to the code, what happens is that the parentheses are ignored and everything is evaluated left to right.

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