nick34992
7/12/2017 - 8:14 PM

Elixir: |> Operator

Elixir: |> Operator

defmodule Flat do
    def flatten do
        [1, [2], 3]
        |> List.flatten
        |> Enum.map(fn x -> x * 2 end)
    end
end