AdventOfCode/2018/day1/part1.exs
2021-12-26 22:10:19 +09:00

5 lines
115 B
Elixir

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