summaryrefslogtreecommitdiff
path: root/2026/1.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2026-12-01 22:51:13 +0100
committerTom Smeding <tom@tomsmeding.com>2026-12-01 22:51:13 +0100
commit3fe3a28ba38ba1fba2f0a7236e078fa679ab99fd (patch)
tree3a235440bb61710a398130a0760ba12c3768ad6a /2026/1.hs
parent2dad8cf5d59e07637ad45c4200966816b76dcd67 (diff)
Diffstat (limited to '2026/1.hs')
-rw-r--r--2026/1.hs3
1 files changed, 1 insertions, 2 deletions
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