1
0
Fork 0
advent-of-code/2021/lib/advent_of_code.ex

13 lines
331 B
Elixir
Raw Normal View History

defmodule AdventOfCode do
@moduledoc """
Solutions to the 2021 Advent of Code puzzles
"""
def solver(selector) do
[day, part] = String.split(selector, ".")
day_module = Macro.camelize("Day#{day}")
part_module = Macro.camelize("Part#{part}")
Module.concat([AdventOfCode, day_module, part_module])
end
end