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

14 lines
295 B
Elixir
Raw Normal View History

defmodule Mix.AdventOfCode do
@moduledoc """
Helpers for `AdventOfCode` mix tasks.
"""
def day_module(day) do
Module.concat(AdventOfCode, Macro.camelize("Day#{day}"))
end
def part_module(day, part) do
Module.concat(day_module(day), Macro.camelize("Part#{part}"))
end
end