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)).()
endinstead of
def test()
1
|> myFun(2)
endwende commented
Actually they do need to since pipes work differently in Elm than Elixir (last vs first)