Quick actions

cmd+k|ctrl+k

Navigation

Languages

Elixir pipes and lambdas

Snippet info

Language

Elixir

Visibility

public

Author

petter

Created

2015-07-12T00:21:14Z

Updated

2015-07-12T23:23:27Z

1 |> (&+/2).(2) |> (&+/2).(3) |> IO.puts

:erlang.now |> :erlang.phash2 |> Integer.to_string(36) |> String.downcase |> IO.puts

0..9 |> Enum.map(&(:math.pow(2, &1))) |> Enum.reduce(&+/2) |> round |> IO.puts
INFO