aboutsummaryrefslogtreecommitdiff
path: root/aoc-2020-gleam/src/days/day07.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'aoc-2020-gleam/src/days/day07.gleam')
-rw-r--r--aoc-2020-gleam/src/days/day07.gleam2
1 files changed, 1 insertions, 1 deletions
diff --git a/aoc-2020-gleam/src/days/day07.gleam b/aoc-2020-gleam/src/days/day07.gleam
index 8569956..0b0a8e8 100644
--- a/aoc-2020-gleam/src/days/day07.gleam
+++ b/aoc-2020-gleam/src/days/day07.gleam
@@ -43,7 +43,7 @@ fn parse_graph(lines: List(String)) -> BagGraph {
|> p.skip(p.then(p.literal("bag"), p.opt(p.literal("s"))))
|> p.sep1(by: p.literal(", ")),
else: p.literal("no other bags")
- |> p.map(fun.constant([])),
+ |> p.replace(with: []),
))
|> p.skip(p.literal("."))