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

Questions
Question [1].
The type of [0, 6] * [-1, 11] is

Question [2].
[12, -15] * [-16, -3] == 



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.