Navigation
Synopsis Cartesian product of two relation values.
Syntax Exp1 * Exp2
Types
Exp1 Exp2 Exp1 * Exp2
set[T1] set[T2] rel[T1, T2]
Description Returns a binary relation that is the Cartesian product of two sets.
Examples
rascal>{1, 2, 3} * {9};
rel[int,int]: {
  <2,9>,
  <3,9>,
  <1,9>
}
rascal>{1, 2, 3} * {10, 11};
rel[int,int]: {
  <1,11>,
  <2,11>,
  <3,11>,
  <3,10>,
  <2,10>,
  <1,10>
}

Questions
Question [1].
The type of {7, 6, -15} * {17, 18} is

Question [2].
{-3, 11, 15} * {-1, 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.