solve-1.3: Solving simple games

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

Solve.Util

Description

 

Documentation

groupl :: Int -> [a] -> [[a]] Source #

groupr :: Int -> [a] -> [[a]] Source #

singleton :: a -> [a] Source #

doubleton :: a -> a -> [a] Source #

tripleton :: a -> a -> a -> [a] Source #

middle :: [a] -> a Source #

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

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

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

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

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

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

sumDist :: Prob -> [Prob] -> [Prob] -> [Prob] Source #

fuzzDist :: Prob -> [Prob] -> [Prob] Source #

data Table Source #

Constructors

Table 
Instances
Show Table Source # 
Instance details

Defined in Solve.Util

Methods

showsPrec :: Int -> Table -> ShowS #

show :: Table -> String #

showList :: [Table] -> ShowS #