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

Questions
Question [1].
The type of carrier([<11, -9>, <12, 3>, <-20, 6>, <-15, -16>, <-2, -17>]) is

Question [2].
The type of carrier([<"Y", 17>, <"Grape", -2>]) is

Question [3].
carrier([<"Han Solo", -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.