Skip to content

Commit 1fab2f8

Browse files
committed
another lazy unwrap
1 parent ca7588b commit 1fab2f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/day19/solution.gleam

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ fn add_towel_acc(
7272
}
7373
}
7474
[first, ..rest] -> {
75-
let existing = dict.get(root, first) |> result.unwrap(Next(dict.new()))
75+
let existing =
76+
dict.get(root, first) |> result.lazy_unwrap(fn() { Next(dict.new()) })
7677

7778
case existing {
7879
Next(subvalues) -> {

0 commit comments

Comments
 (0)