Files
advent-of-code-2023/day15/Part1.hs
2023-12-15 12:24:33 +01:00

8 lines
128 B
Haskell

module Part1 where
import Commons
getHashes :: [Instruction] -> [Int]
getHashes = foldr (\ h -> (:) (getHash (raw h) 0)) [0]