From 92176926c7a864d35ba8a8b0408cf8adaa744077 Mon Sep 17 00:00:00 2001 From: Logiar Date: Thu, 5 Dec 2024 08:14:31 +0100 Subject: [PATCH] Removed unnecessary constructor. --- day05.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] } }