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

Partial reverse application operator #449

Open
radrow opened this issue May 13, 2023 · 0 comments
Open

Partial reverse application operator #449

radrow opened this issue May 13, 2023 · 0 comments
Labels
effort: low enhancement New feature or request

Comments

@radrow
Copy link
Member

radrow commented May 13, 2023

Currently |> works only on single argument functions, rendering it quite useless in many situations. Following Elixir's approach to it, we could make it only on the first (last?) parameter that is piped:

function i(x) = x
function f(x, y) = x - y
function g(x) = x

21 |> i |> f(37) |> g

which would mean

g(f(i(21), 37))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: low enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant