+!
lists
operators
The +! operator adds the element on top of the stack to the set or list below it.
The element is added to the existing collection.
+! is available since version 1.2.0.
See also
Signatures
Examples
[ 1 2 3 ]
'list' STORE
// Regular '+' creates a new list so $list does not contain '4'
$list 4 +
// in place '+!' adds the element to the existing list
$list 5 +!
// same effect as 6 +!
$list [ 6 ] APPEND
( 'alpha' 'beta' )
'gamma' +!
'alpha' +! //set guarantee items uniqueness
'argh' +!
SET-> //turn into list to display the result. Sets cannot be displayed on the stack.