Main
Description
https://adventofcode.com/2016/day/10
data T Source #
Constructors
Defined in Main
Methods
showsPrec :: Int -> T -> ShowS #
show :: T -> String #
showList :: [T] -> ShowS #
main :: IO () Source #
>>> :main 147 55637
>>>
:main
data Instr Source #
showsPrec :: Int -> Instr -> ShowS #
show :: Instr -> String #
showList :: [Instr] -> ShowS #
data Target Source #
showsPrec :: Int -> Target -> ShowS #
show :: Target -> String #
showList :: [Target] -> ShowS #
(==) :: Target -> Target -> Bool #
(/=) :: Target -> Target -> Bool #
compare :: Target -> Target -> Ordering #
(<) :: Target -> Target -> Bool #
(<=) :: Target -> Target -> Bool #
(>) :: Target -> Target -> Bool #
(>=) :: Target -> Target -> Bool #
max :: Target -> Target -> Target #
min :: Target -> Target -> Target #
toInstr :: Either (Int, T, Int) (Int, T, Int, T, Int) -> Instr Source #
toTarget :: T -> Int -> Target Source #
followInstructions :: [Instr] -> Map Target [Int] Source #