diff --git a/src/year2021/day09/Day09.kt b/src/year2021/day09/Day09.kt index 924c02d..1de5989 100644 --- a/src/year2021/day09/Day09.kt +++ b/src/year2021/day09/Day09.kt @@ -51,7 +51,7 @@ fun part2(input: List>): Int { } sizes.sortDescending() - return sizes.take(3).fold(1) { product, n -> n * product } + return sizes.take(3).fold(1, Int::times) } fun main() {