13 lines
242 B
Elixir
13 lines
242 B
Elixir
|
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
|
||
|
|