board-games-0.2.1: Three games for inclusion in a web server

Safe HaskellSafe
LanguageHaskell2010

Game.Mastermind.CodeSet.Union

Synopsis

Documentation

data T a Source #

Cons [[a,b,c,d], [e,f,g,h]] expresses a x b x c x d union e x f x g x h, where x denotes the set product.

Instances
C T Source # 
Instance details

Defined in Game.Mastermind.CodeSet.Union

Methods

empty :: T a Source #

union :: Ord a => T a -> T a -> T a Source #

intersection :: Ord a => T a -> T a -> T a Source #

unit :: T a Source #

leftNonEmptyProduct :: T0 a -> T a -> T a Source #

flatten :: Ord a => T a -> [[a]] Source #

symbols :: Ord a => T a -> Set a Source #

null :: T a -> Bool Source #

size :: T a -> Integer Source #

select :: T a -> Integer -> [a] Source #

representationSize :: T a -> Int Source #

compress :: Ord a => T a -> T a Source #

(Ord a, Show a) => Show (T a) Source # 
Instance details

Defined in Game.Mastermind.CodeSet.Union

Methods

showsPrec :: Int -> T a -> ShowS #

show :: T a -> String #

showList :: [T a] -> ShowS #

member :: Ord a => [a] -> T a -> Bool Source #

fromLists :: Ord a => [[T [] a]] -> T a Source #

cube :: Int -> T a -> T a Source #

overlappingPairs :: Ord a => T a -> [([Set a], [Set a])] Source #

for debugging: list all pairs of products, that overlap

overlapping :: Ord a => T a -> [([Set a], [[Set a]])] Source #

for debugging: list all subsets, that are contained in more than one product