aoc2017-0.1.0.0: Advent of Code 2017 - my answers

Safe HaskellSafe
LanguageHaskell2010

Day24

Description

 

Synopsis

Documentation

parse :: (Ord a, Read a) => String -> Map a (Map Int a) Source #

Bidrectionally associates a => n => b and b => n => a, where n is an unique identifier for each a/b line.

deleteOrNull :: Ord k => k -> Map k v -> Maybe (Map k v) Source #

Deletes a key from a Map, returning Nothing if it becomes empty.

buildBridge :: (Num a, Ord a, Ord b, Semigroup s) => (a -> a -> s -> s) -> s -> a -> Map a (Map b a) -> s Source #

Explores all bridges.