Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Data.Relation.Ops
Documentation
Primitive implementation for the right selection and left selection operators.
PICA provides both operators:
|>
and <|
and |$>
and <$|
in this library, for working with Relations and OIS (Ordered, Inductive Sets?).
PICA exposes the operators defined here, so as not to interfere with the abstraction of the Relation type and because having access to Relation hidden components is a more efficient implementation of the operation of restriction.
(a <$| b) r denotes: for every elementb
from the SetB
, select an elementa
from the SetA
, ifa
is related tob
inr
(a |$> b) r denotes: for every elementa
from the SetA
, select an elementb
from the SetB
, ifa
is related tob
inr
With regard to domain restriction and range restriction operators of the language, those are described differently and return the domain or the range.