solve-1.0: Solving simple games

LicenseMIT
MaintainerJoe Leslie-Hurd <joe@gilith.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Solve.Util

Description

 

Documentation

find :: (a -> Bool) -> [a] -> Maybe ([a], a, [a]) Source #

mapLR :: (s -> a -> (b, s)) -> s -> [a] -> ([b], s) Source #

mapRL :: (a -> s -> (s, b)) -> [a] -> s -> (s, [b]) Source #

orderBy :: (a -> a -> Ordering) -> [a] -> [(Int, a)] Source #

reorder :: [(Int, a)] -> [a] Source #

updateSet :: Ord a => (a -> [a]) -> Set a -> [Set a] Source #