1
0
Fork 0
advent-of-code/2021/lib/advent_of_code/puzzle_solver.ex
2021-11-03 07:40:11 -04:00

16 lines
327 B
Elixir

defmodule AdventOfCode.PuzzleSolver do
@moduledoc """
Behaviour for a puzzle solution.
"""
@doc """
Given the input as a stream, return the solution as a string
"""
@callback solve(IO.Stream.t()) :: String.t()
defmacro __using__(_) do
quote do
@behaviour AdventOfCode.PuzzleSolver
end
end
end