diff --git a/day05.kts b/day05.kts index 76a2a8c..4e1903b 100755 --- a/day05.kts +++ b/day05.kts @@ -21,7 +21,7 @@ for (page in pagesList) { if (isOrdered(page)) { orderedMiddleSum += page[page.size / 2] } else { - val orderedPage = page.sortedWith(Comparator { a, b -> compareByRules(a, b) }) + val orderedPage = page.sortedWith { a, b -> compareByRules(a, b) } unorderedMiddleSum += orderedPage[orderedPage.size / 2] } }