From 3fe3a28ba38ba1fba2f0a7236e078fa679ab99fd Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 1 Dec 2026 21:51:13 +0000 Subject: Golf 1 --- 2026/1.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '2026/1.hs') diff --git a/2026/1.hs b/2026/1.hs index e36246b..d6294fa 100644 --- a/2026/1.hs +++ b/2026/1.hs @@ -3,8 +3,7 @@ module Main where import Control.Arrow import Control.Monad (join) -import Data.Bifunctor (bimap) import Data.List (group, sort) main :: IO () -main = runKleisli (const () ^<< join (***) (Kleisli print)) . join bimap (product . map snd . take 3) . (reverse &&& id) . sort . map (length &&& head) . group . sort . map (read @Int) . words =<< getContents +main = runKleisli (const () ^<< join (***) (Kleisli print <<^ product . map snd . take 3)) . (reverse &&& id) . sort . map (length &&& head) . group . sort . map (read @Int) . words =<< getContents -- cgit v1.3.1