Navigation
Synopsis Relation excluding certain range values.
Function rel[&T0,&T1] rangeX (rel[&T0,&T1] R, set[&T2] S)
Usage import Relation;
Description Restriction of binary relation R to tuples with second element not in set S.
Examples
rascal>import Relation;
ok
rascal>rangeX({<1,10>, <2,20>, <3,30>}, {30, 10});
rel[int,int]: {<2,20>}

Questions
Question [1].
The type of rangeX({<7, 13>, <2, 13>}, {3, 4, 5, 18}) is

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



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.