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

16 lines
273 B
Elixir
Raw Normal View History

2024-12-02 23:08:24 -05:00
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