This commit is contained in:
2023-12-16 14:48:42 +01:00
parent 8e54e42899
commit 322b2b50c0
5 changed files with 112 additions and 16 deletions

8
day16/Part1.hs Normal file
View File

@@ -0,0 +1,8 @@
module Part1 where
import Commons
import Data.Set (empty, map, toList, delete)
getEnergized :: Cavern -> [(Int, Int)]
getEnergized = toList . delete (1, 0) . Data.Set.map (\ (y, x, _) -> (y, x)) . lightBeam (1, 0) East empty