License | MIT |
---|---|
Maintainer | @tylerjl |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Solutions to the 2023 day 01 set of problems for adventofcode.com.
Documentation
base10Tuple :: (Int, Int) -> Int #
Turn a tuple into a two-digit number
intoPair :: [Int] -> Maybe (Int, Int) #
Given a list of ints, try and turn it into a tuple of first and last elements, with Nothing as the result if it can’t be done.
calibrateA :: String -> [[Int]] #
Transform an input string into a list of all the digits found in each line.
calibrateB :: String -> [[Int]] #
Transform an input string into a list of all the digits and spelled numbers found in each line.