Day 16
This commit is contained in:
8
day16/Part1.hs
Normal file
8
day16/Part1.hs
Normal 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
|
||||
Reference in New Issue
Block a user