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

Pipeline operator #16

Open
an-drian opened this issue Oct 15, 2020 · 1 comment
Open

Pipeline operator #16

an-drian opened this issue Oct 15, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@an-drian
Copy link

It would be nice to have pipeline operator, something like in Elixir or Elm.

Example:

let add = (x, y) do
  x + y
end

let multiply = (x, y) do
  x * y
end

let result = 5 |> add(5) |> multiply(5)
# expected output - 50 
@yurtsiv
Copy link
Owner

yurtsiv commented Oct 17, 2020

@an-drian Yeah, I like that. Thanks for the proposal!

@yurtsiv yurtsiv added the enhancement New feature or request label Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants