This commit is contained in:
2023-12-15 12:21:40 +01:00
parent 8614db903e
commit 2c628cf0be
5 changed files with 86 additions and 0 deletions

7
day15/Part1.hs Normal file
View File

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