You are viewing a single comment's thread. Return to all comments →
My Elixir solution
IO.read(:stdio, :all) |> String.split |> Enum.map(&String.to_integer(&1)) |> Enum.reduce(fn (x, y) -> if rem(x,2)!=0, do: x+y, else: y end) |> IO.puts
Seems like cookies are disabled on this browser, please enable them to open this website
Sum of Odd Elements
You are viewing a single comment's thread. Return to all comments →
My Elixir solution