Skip to content

Commit

Permalink
⚡ view it bro
Browse files Browse the repository at this point in the history
  • Loading branch information
twentylemon committed Dec 8, 2023
1 parent ac3af6c commit 4a91b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/org/lemon/advent/year2023/Day04.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4a91b00

Please sign in to comment.