aoc2018-0.1.0.0: Advent of Code 2018 solutions and auto-runner

Safe HaskellNone
LanguageHaskell2010

AOC.Util.DynoMap

Synopsis

Documentation

newtype DynoMap Source #

Constructors

Dyno 
Instances
Semigroup DynoMap Source # 
Instance details

Defined in AOC.Util.DynoMap

Monoid DynoMap Source # 
Instance details

Defined in AOC.Util.DynoMap

lookupDyno :: forall a. Typeable a => String -> DynoMap -> Maybe a Source #

Lookup the value at a given key in a Dyno.

lookupDyno "hello"

lookupDynoWith :: forall a. Typeable a => String -> a -> DynoMap -> a Source #

Like lookupDyno, but with a default value to be returned if the key is not found or has the wrong type.