[erlang-questions] Pipe Operator in Erlang?

Tristan Sloughter t@REDACTED
Thu Jul 9 17:38:55 CEST 2015


Yea yea, Fred pointed out a typo:

f(X) ->
    fun(Y) -> X + Y end.

f(X, Y) ->
    X - Y.

3 |> f(2).

5 or 1?

-- 
  Tristan Sloughter
  t@REDACTED

On Thu, Jul 9, 2015, at 10:35 AM, Tristan Sloughter wrote:
> I hope not. Take this code for example
> 
> f(X) ->
>     g(Y) -> X + Y end.
> 
> f(X, Y) ->
>     X - Y.
> 
> 3 |> f(2).
> 
> 5 or 1?
> 
> -- 
>   Tristan Sloughter
>   t@REDACTED
> 
> On Thu, Jul 9, 2015, at 10:24 AM, Volkert wrote:
> > Dear all,
> > 
> > I really love the Pipe Operator |> in Elixir and F#.
> > 
> > Are there any plans to have this in Erlang?
> > 
> > Volkert
> > 
> > 
> > 
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list