aoc2017-0.1.0.0: Advent of Code 2017 - my answers

Safe HaskellSafe
LanguageHaskell2010

Day21

Description

 

Synopsis

Documentation

transforms :: [[[a]] -> [[a]]] Source #

8 affine transformations.

parse :: String -> Map [[Bool]] [[Bool]] Source #

Parse a list of enhancements.

start :: [[Bool]] Source #

The glider.

step :: Ord a => Map [[a]] [[a]] -> [[a]] -> [[a]] Source #

Expand sub-squares according to the rules map.

canonicalize :: Ord a => [[a]] -> [[a]] Source #

Returns the same valeu for all transformations of the same block.

step3

day21 :: Int -> String -> Int Source #

day21 n input returns the number of bits set in the n-th step of transforming the start glider using parse rules from input.