Navigation
Synopsis Tuple in abstract pattern.
Syntax < Pat1, Pat2, ..., Patn >
Description A tuple pattern matches a tuple value, provided that Pat1, Pat2, ..., Patn match the elements of that tuple in order.
Examples
rascal>import IO;
ok
rascal>if(<A, B, C> := <13, false, "abc">)
>>>>>>>   println("A = <A>, B = <B>, C = <C>");
A = 13, B = false, C = abc
ok
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.