|> as last argument instead of first

I have learned some Clojure before trying Elixir and am wondering if there is an operator like “|>” that passes as the last argument instead of the first? Kind of how Clojure has “->” and “->>”? Maybe it is not an issue?

2 Likes

There is no such operator, though I recall there were 3rd party attempts to do that with macros? It hasn’t been an issue for me, usually you design your functions to take the pipeable argument as the first one if they are meant to be piped.

3 Likes