aoc-2021/day8/first.hs

10 lines
191 B
Haskell
Raw Normal View History

2021-12-09 14:21:03 +00:00
solution :: String -> Int
solution = length
. filter id
. map (not . (\x -> (x==6) || (x==5)) . length)
. concatMap (drop 11)
. map words
. lines
main = interact $ show . solution