![]() |
| ||||||
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].
![]() ![]()
Question [2].
![]() ![]()
Question [3].
![]() ![]() ![]() |