monadiccp-0.7.7: Constraint Programming
Control.CP.FD.OvertonFD.Domain
data Domain Source #
Instances
Methods
(==) :: Domain -> Domain -> Bool #
(/=) :: Domain -> Domain -> Bool #
showsPrec :: Int -> Domain -> ShowS #
show :: Domain -> String #
showList :: [Domain] -> ShowS #
toDomain :: Domain -> Domain Source #
class ToDomain a where Source #
Minimal complete definition
toDomain
toDomain :: a -> Domain Source #
toDomain :: () -> Domain Source #
toDomain :: IntSet -> Domain Source #
toDomain :: [a] -> Domain Source #
toDomain :: (a, b) -> Domain Source #
toDomain :: ToDomain a => a -> Domain Source #
member :: Int -> Domain -> Bool Source #
isSubsetOf :: Domain -> Domain -> Bool Source #
elems :: Domain -> [Int] Source #
intersection :: Domain -> Domain -> Domain Source #
difference :: Domain -> Domain -> Domain Source #
union :: Domain -> Domain -> Domain Source #
empty :: Domain Source #
null :: Domain -> Bool Source #
singleton :: Int -> Domain Source #
isSingleton :: Domain -> Bool Source #
filterLessThan :: Int -> Domain -> Domain Source #
filterGreaterThan :: Int -> Domain -> Domain Source #
findMax :: Domain -> Int Source #
findMin :: Domain -> Int Source #
size :: Domain -> Int Source #
shiftDomain :: Domain -> Int -> Domain Source #
mapDomain :: Domain -> (Int -> [Int]) -> Domain Source #
absDomain :: Domain -> Domain Source #