Day 11
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user