![]() |
|
Navigation |
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> rascal>T[0]; str: "mon" ![]() |