News for hackers. Stuff that matters.
Re:Pipe Operator (|>) For JavaScript by sph on Friday January 20, 2023 @11:29AM (#34455455)
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)

There are no comments on this comment yet.