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

multiple value return error when using pipe operators #60

Open
cderici opened this issue Jul 11, 2019 · 2 comments
Open

multiple value return error when using pipe operators #60

cderici opened this issue Jul 11, 2019 · 2 comments

Comments

@cderici
Copy link

cderici commented Jul 11, 2019

I was just playing with rash and noticed the following:

> ls |> (lambda (s) (values 1 2))
Result 46:
result arity mismatch;
 expected number of values not received
  expected: 1
  received: 2
  values...:
   1
   2

It fails similarly when using |>> as well.

@willghatch
Copy link
Owner

willghatch commented Jul 12, 2019 via email

@willghatch
Copy link
Owner

Or better stated, it is easy to make a custom pipeline operator macro that supports multiple values, but that wouldn't bring support to every operator. Are there compelling reasons you want to use multiple values in pipelines where converting them to a list in the function you use or using a multiple values operator doesn't work or is inconvenient?

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

2 participants