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

Make |> wellbehaved with regard to splatting #13240

Closed
wants to merge 1 commit into from

Conversation

mschauer
Copy link
Contributor

@mschauer mschauer commented Sep 20, 2015

Defines |>(x,..,z, f) == f(x,...,z). This would make the chaining operator |> work nicely with splatted arguments.

Example:

    minmax(2,1)... |> tuple == (1,2)

This small change is nonbreaking, motivated by

http://stackoverflow.com/questions/32276896/how-to-use-the-pipe-operator-with-tuples-and-anonymous-functions-in-julia/32284433#32284433

@MikeInnes
Copy link
Member

+1

@mschauer
Copy link
Contributor Author

Outdated

@mschauer mschauer closed this Sep 21, 2018
@mschauer mschauer deleted the chain branch September 21, 2018 23:42
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

Successfully merging this pull request may close these issues.

2 participants