This commit is contained in:
bluepython508
2023-12-11 13:33:19 +00:00
parent 5c04d2651e
commit 753635b38e
5 changed files with 62 additions and 0 deletions

View File

@@ -45,4 +45,6 @@ defmodule Aoc2023.Common do
def list_map_at(l, n, f) do
List.replace_at(l, n, f.(Enum.at(l, n)))
end
def transpose(l), do: l |> Enum.zip |> Enum.map(&Tuple.to_list/1)
end