4 ms·
The pipe operator in Elixir also benefits from having the subject of most functions in the standard library as first argument. No need for the % hack operator,
by sph 4y ago
The pipe operator in Elixir also benefits from having the subject of most functions in the standard library as first argument. No need for the % hack operator, so you can just do:
"hello world"
|> String.split(" ", trim: true)
|> Enum.map(&String.upcase/1)