711 B
711 B
6.2.5. List Displays
In AVAP, lists are generated and handled differently. To construct a list, the command variableToList(variable, list) is used, and an item from the list is retrieved with itemFromList(list, index, variable_to_store_item) . To get the number of elements in the list, getListLen(list, var_to_store_list_length) is used.
The syntax for list displays is:
list_display ::= "[" [starred_list | comprehension] "]"
A list display produces a new list object, whose content is specified by a list of expressions or a comprehension. When a list of expressions is provided, its elements are evaluated from left to right and placed in the list object in that order.