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

Pipe backward does not work when used in a param #1

Open
micahnz opened this issue Aug 29, 2016 · 0 comments
Open

Pipe backward does not work when used in a param #1

micahnz opened this issue Aug 29, 2016 · 0 comments
Labels

Comments

@micahnz
Copy link
Owner

micahnz commented Aug 29, 2016

The following example results in a error

const chain =  (fn) => (state) => (...args) => {
  const result = R.apply(fn << state, args);
...

Where as when using pipe forward in the same situation works fine.

const chain =  (fn) => (state) => (...args) => {
  const result = R.apply(fn >> state, args);
...

I suspect this is due if (t.isCallExpression(path.parent)) { being too simple of a check when chaining the pipe backward operator.

@micahnz micahnz added the bug label Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant