wende/elchemy

Pipes require the function to be curried when they don't need to

wende opened this issue · 1 comments

wende commented

Add: Uncurry for functions that are piped to with arity n - 1

Example:

myFun a b = 1

test =
  1
  |> myFun 2

->

def test()
  1
  |> (myFun().(2)).()
end

instead of

def test()
  1
  |> myFun(2)
end
wende commented

Actually they do need to since pipes work differently in Elm than Elixir (last vs first)