Advent-of-Code-2024/elixir/lib/day2.ex

16 lines
273 B
Elixir

defmodule Day2 do
def part1(file_path) do
file_path
|> File.read!()
|> String.split("\n")
|> Enum.map(&String.split/1)
end
def part2(file_path) do
file_path
|> File.read!()
|> String.split("\n")
|> Enum.map(&String.split/1)
end
end