Let's fix that freaking snow production ASAP
Elixir was chosen as an opportunity to learn functional programming
There is a script called init.exs
which can be executed to create a folder and templates for a new challenge, as follows:
elixir init.exs
#then just type the number of the day for the challenge
Reading a file per line
File.stream!("file.txt")
|> Stream.map(&String.trim/1)
|> Stream.with_index
|> Stream.map(fn ({line, index}) -> IO.puts "#{index + 1} #{line}" end)
|> Stream.run