labyrinth-0.4.1.0: A complicated turn-based game

Safe HaskellNone

Labyrinth.Reachability

Documentation

insertAppend :: Ord k => k -> v -> Map k [v] -> Map k [v]Source

inverse :: (Ord a, Ord b) => Map a [b] -> Map b [a]Source

foldConcat :: Monoid v => Map k [v] -> Map k vSource

distribute :: (Ord k, Monoid v) => Map k [k] -> Map k v -> Map k vSource

distributeN :: (Ord k, Monoid v) => Int -> Map k [k] -> Map k v -> Map k vSource

distributeU :: (Ord k, Monoid v, Eq v) => Map k [k] -> Map k v -> Map k vSource

normalize :: Fractional v => Map k v -> Map k vSource

maxKeyBy :: Ord n => (k -> n) -> Map k a -> nSource

pad :: Int -> a -> [a] -> [a]Source