License | MIT |
---|---|
Maintainer | @tylerjl |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Solutions to the 2021 day 05 set of problems for adventofcode.com.
Documentation
part5APredicate :: Line -> Bool #
lineTo :: Line -> [(Point, Sum Int)] #
Accept a start and end point and return a list of points that draw a line to the endpoint. Note that this doesn't work for anything other than vertical, horizontal, and 45deg.
parseVents :: Text -> [Line] #
Parse puzzle input into simple pairs of pairs of points.