From d2e6f920f36d9e07a0a51e5c9edd48a9dd6e51d4 Mon Sep 17 00:00:00 2001 From: ajet Date: Tue, 9 Dec 2025 06:20:28 -1000 Subject: [PATCH] simplify --- 2025/src/day09.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2025/src/day09.clj b/2025/src/day09.clj index 6e6ba00..ec988c4 100644 --- a/2025/src/day09.clj +++ b/2025/src/day09.clj @@ -45,7 +45,7 @@ [[cx cy] [dx dy]] [a b]] (and (not (some #(intersect? [a b] %) segments)) (not (some #(intersect? [[cx dy] [dx cy]] %) segments)))))) ;; check reverse diaganol too - (sort-by (partial apply area)) - last - (apply area)) + (map (partial apply area)) + sort + last)