Documentation
part1 :: [Coord] -> Int Source #
Given a list of steps determine the ultimate Manhattan-distance from
the starting position.
toSteps Source #
Arguments
:: Coord | initial direction |
-> [(D, Int)] | commands |
-> [Coord] | list of directions |
Compute steps taken by following a list of commands