This commit is contained in:
bluepython508
2023-12-18 09:19:27 +00:00
parent 3fc1300387
commit a9519aebbf
8 changed files with 90 additions and 8 deletions

View File

@@ -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