![]() |
| ||||||
Navigation |
Synopsis Select a field from a tuple by its field name.
Syntax
Exp . Name
Types
Description Field selection applies to tuples with named elements.
Exp should evaluate to a tuple with field Name and returns the value of that field.
Name stands for itself and is not evaluated.
Examples
rascal>tuple[int key, str val] T = <1, "abc">; tuple[int key,str val]: <1,"abc"> rascal>T.val; str: "abc" ![]() |