Navigation
Synopsis Return the set of all elements in any tuple in a relation.
Function
  1. set[&T] carrier (rel[&T,&T] R)
  2. set[&T] carrier (rel[&T,&T,&T] R)
  3. set[&T] carrier (rel[&T,&T,&T,&T] R)
  4. set[&T] carrier (rel[&T,&T,&T,&T,&T] R)
Usage import Relation;
Examples
rascal>import Relation;
ok
rascal>carrier({<1,10>, <2,20>});
set[int]: {1,2,10,20}
rascal>carrier({<1,10,100,1000>, <2,20,200,2000>});
set[int]: {1,2,100,10,2000,20,200,1000}

Questions
Question [1].
The type of carrier({<-15, 11>, <-19, -7>}) is

Question [2].
The type of carrier({<"Mandarin", -18>, <"Barkley the Dog", 0>, <"Pincess Leia", -6>}) is

Question [3].
carrier({<"Guy Smiley", 12>}) == 



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.