We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cba9dd5 commit 421e241Copy full SHA for 421e241
build.gradle
@@ -4,7 +4,7 @@ plugins {
4
5
// project meta data
6
group 'de.havox_design.aoc2023'
7
-version '0.18.0'
+version '0.18.1'
8
9
// Switch to gradle "all" distribution.
10
wrapper {
day18/src/main/kotlin/de/havox_design/aoc2023/day18/Day18.kt
@@ -86,7 +86,7 @@ class Day18(private var filename: String) {
86
87
private fun List<Coordinate>.polygonArea(): Double =
88
abs((1..<size)
89
- .sumOf { it -> crossProduct(get(it), get(it - 1)) } / 2.0)
+ .sumOf { value -> crossProduct(get(value), get(value - 1)) } / 2.0)
90
91
private fun crossProduct(a: Coordinate, b: Coordinate) =
92
a.x.toLong() * b.y.toLong() - b.x.toLong() * a.y.toLong()
0 commit comments