Day 18
This commit is contained in:
@@ -59,4 +59,8 @@ defmodule Aoc2023.Common do
|
||||
|
||||
def repeat(_, 0), do: []
|
||||
def repeat(lst, n), do: Enum.concat(lst, repeat(lst, n - 1))
|
||||
|
||||
def add_vec({y, x}, {y_, x_}) do
|
||||
{y + y_, x + x_}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user