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

Questions
Question [1].
The type of domainX({<4, 13>, <2, 15>}, {6, 16, 13, 19}) is

Question [2].
domainX({<7, 11>, <0, 17>, <8, 18>, <6, 19>, <0, 11>}, {3, 7, 0, 15, 10, 11, 18, 4}) == 



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.