AdventOfCode/2018/day1/part1.exs

6 lines
115 B
Elixir
Raw Normal View History

2021-12-26 13:10:19 +00:00
File.stream!("input")
|> Stream.map(&String.trim/1)
|> Stream.map(&String.to_integer/1)
|> Enum.sum()
|> IO.puts()