Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class C set where
- empty :: set a
- union, intersection :: Enum a => set a -> set a -> set a
- unit :: set a
- leftNonEmptyProduct :: T a -> set a -> set a
- flatten :: Enum a => set a -> [[a]]
- symbols :: Enum a => set a -> EnumSet a
- null :: set a -> Bool
- size :: set a -> Integer
- select :: Enum a => set a -> Integer -> [a]
- representationSize :: set a -> Int
- compress :: Enum a => set a -> set a
- cube :: C set => T a -> Int -> set a
- unions :: (C set, Enum a) => [set a] -> set a
- intersections :: (C set, Enum a) => T [] (set a) -> set a
- intersectionsPQ :: (C set, Enum a) => T [] (set a) -> set a
- (*&) :: (C set, Enum a) => EnumSet a -> set a -> set a
- (#*&) :: (C set, Enum a) => a -> set a -> set a
Documentation
union :: Enum a => set a -> set a -> set a Source #
intersection :: Enum a => set a -> set a -> set a Source #
leftNonEmptyProduct :: T a -> set a -> set a Source #
flatten :: Enum a => set a -> [[a]] Source #
symbols :: Enum a => set a -> EnumSet a Source #
null :: set a -> Bool Source #
size :: set a -> Integer Source #
select :: Enum a => set a -> Integer -> [a] Source #
representationSize :: set a -> Int Source #
compress :: Enum a => set a -> set a Source #
simplify set representation by combining set products where possible
Instances
C T Source # | |
Defined in Game.Mastermind.CodeSet.Union union :: Enum a => T a -> T a -> T a Source # intersection :: Enum a => T a -> T a -> T a Source # leftNonEmptyProduct :: T0 a -> T a -> T a Source # flatten :: Enum a => T a -> [[a]] Source # symbols :: Enum a => T a -> EnumSet a Source # size :: T a -> Integer Source # select :: Enum a => T a -> Integer -> [a] Source # representationSize :: T a -> Int Source # | |
C T Source # | |
Defined in Game.Mastermind.CodeSet.Tree union :: Enum a => T a -> T a -> T a Source # intersection :: Enum a => T a -> T a -> T a Source # leftNonEmptyProduct :: T0 a -> T a -> T a Source # flatten :: Enum a => T a -> [[a]] Source # symbols :: Enum a => T a -> EnumSet a Source # size :: T a -> Integer Source # select :: Enum a => T a -> Integer -> [a] Source # representationSize :: T a -> Int Source # |