Navigation
Synopsis List relation restricted to certain domain elements.
Function
  1. lrel[&T0,&T1] domainR (lrel[&T0,&T1] R, set[&T0] S)
  2. lrel[&T0,&T1,&T2] domainR (lrel[&T0,&T1,&T2] R, set[&T0] S)
  3. lrel[&T0,&T1,&T2,&T3] domainR (lrel[&T0,&T1,&T2,&T3] R, set[&T0] S)
  4. lrel[&T0,&T1,&T2,&T3,&T4] domainR (lrel[&T0,&T1,&T2,&T3,&T4] R, set[&T0] S)
Usage import ListRelation;
Description Restriction of a list relation R to tuples with first element in S.
Examples
rascal>import ListRelation;
ok
rascal>domainR([<1,10>, <2,20>, <3,30>], {3, 1});
lrel[int,int]: [
  <1,10>,
  <3,30>
]

Questions
Question [1].
The type of domainR([<9, 19>, <0, 14>, <1, 10>], {2, 15}) is

Question [2].
domainR([<7, 19>], {16}) == 



Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.