aoc-2018/1.exs

13 lines
242 B
Elixir
Raw Normal View History

2018-12-01 07:21:26 -08:00
defmodule AdventCode do
def synthesize(input, count) do
'\n' ++ rest = input
IO.puts(rest)
end
end
{File.stream!("input-1"), 0}
|> Stream.map(&String.strip/1)
|> Stream.map(fn ({line, x}) -> x = x + "#{line}" end)
|> Stream.run