Copyright | (c) Eric Mertens 2021 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
https://adventofcode.com/2015/day/6
Apply light onofftoggle commands to a grid.
Synopsis
- data C
- data Command = Command !C Coord Coord
- main :: IO ()
- part1 :: [Command] -> ST s Int
- part2 :: [Command] -> ST s Int
- bitCommand :: STUArray s Coord Bool -> Command -> ST s ()
- intCommand :: STUArray s Coord Int -> Command -> ST s ()
- newBitGrid :: ST s (STUArray s Coord Bool)
- newIntGrid :: ST s (STUArray s Coord Int)