Remove one more unneeded map

This commit is contained in:
Adam Millerchip 2020-12-18 12:36:08 +09:00
parent 07c5ebcb1e
commit 7a1ed0c974

View file

@ -56,7 +56,7 @@ defmodule Day16Part2 do
|> String.split("\n\n", trim: true) |> String.split("\n\n", trim: true)
|> Enum.map(&String.split(&1, "\n", trim: true)) |> Enum.map(&String.split(&1, "\n", trim: true))
rules = Map.new(rules, &parse_rule/1) rules = Enum.map(rules, &parse_rule/1)
[my_ticket | nearby_tickets] = [my_ticket | nearby_tickets] =
[my_ticket | nearby_tickets] [my_ticket | nearby_tickets]