push¶
Syntax¶
Parameters¶
list-variable- the name of a list variable.
expression- a single-valued-expression or a list-expression
Description¶
Appends the value of the expression to the list. If the expression is a list-valued expression, the elements in the expression are all appended to the end of the original list.
Examples¶
A_list = list(1,2)
push(A_list, 1+2) # A_list now has the value [1,2,3]
push(A_list, A_list) # A_list now has the value [1,2,3,1,2,3]