|  |  | ||||||
| Navigation | 
Synopsis  Append an element at the end of a list
 
Syntax   Exp1 + Exp2
Types   
 
Description  The operator  +appends an element at the end of a list. The+is one of those Operators which are overloaded. It can also mean List/Insert or List/Concatenation for example.
Examples   rascal>[] + 1; list[int]: [1] rascal>[1] + 2; list[int]: [1,2] 
Pitfalls   
 Questions 
Question [1]. 
    When you append an element to a list, the number of elements in the result is always: 
Question [2]. 
     
Question [3]. 
       |