Synopsis Retrieve a tuple field by its index position.
Syntax Exp1 [ Exp2 ]
Description Subscription retrieves the tuple element with index Exp2 from the tuple value of Exp1.
Examples Introduce a tuple, assign it to T and retrieve the element with index 0:
rascal>T = <"mon", 1>;
tuple[str,int]: <"mon",1>
str: "mon"
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