From 4a91b00eb447e939f26d234ca269dda21315dcef Mon Sep 17 00:00:00 2001 From: twentylemon Date: Thu, 7 Dec 2023 19:08:01 -0500 Subject: [PATCH] :zap: view it bro --- src/main/scala/org/lemon/advent/year2023/Day04.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/org/lemon/advent/year2023/Day04.scala b/src/main/scala/org/lemon/advent/year2023/Day04.scala index 68bdb87..5bdca29 100644 --- a/src/main/scala/org/lemon/advent/year2023/Day04.scala +++ b/src/main/scala/org/lemon/advent/year2023/Day04.scala @@ -21,7 +21,7 @@ private object Day04: .sum def winMe(pool: Iterable[Card], draws: Iterable[Card], depth: Int = 0): Int = - def copyWinnings(from: Card) = pool + def copyWinnings(from: Card) = pool.view .drop(from.id) .take(from.matches)