3 ms·
The Elixir pipe operator |> is the equivalent of the Clojure thread first macro ->, right?
by Rovanion 9y ago
The Elixir pipe operator |> is the equivalent of the Clojure thread first macro ->, right?
- kornish 9y agoYep, exactly. https://elixir-lang.org/getting-started/enumerables-and-streams.html#the-pipe-operator https://elixir-lang.org/getting-started/enumerables-and-stre...
- nilved 9y agoWhich is to say it's equivalent to function composition.
- ams6110 9y agoYes it's syntactic sugar and for me personally harder to read but YMMV.