5 lines
115 B
Elixir
5 lines
115 B
Elixir
File.stream!("input")
|
|
|> Stream.map(&String.trim/1)
|
|
|> Stream.map(&String.to_integer/1)
|
|
|> Enum.sum()
|
|
|> IO.puts()
|