• Reference Guide


push(seq, elem)
var_seq <- push(elem)
Inserts a new element specified by the parameter elem to the end of a sequence. The first variant inserts the element to the sequence seq; the parameter itself is, however, left unchanged. The modified sequence is returned as the function result. The latter variant changes the value of the variable or data item var_seq.

Return Value

The first variant returns the modified sequence, which is of the same type as the parameter seq.
The latter variant returns l-value referring to the variable var_seq.

See Also