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

Questions
Question [1].
The type of domainX([<6, 15>, <8, 12>, <1, 18>, <2, 15>, <1, 11>], {11, 2, 18}) is

Question [2].
domainX([<2, 11>, <7, 15>, <3, 10>, <3, 14>, <6, 12>], {8, 10, 1, 15, 13, 5, 7, 14}) == 



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.