Create a copy with a new entry at the end

lput expression collection lput character word

If the second argument is a collection (array or list) then creates a copy of the collection with the result of expression added as a new element at the beginning.
If the second argument is a word then creates a copy of the word with the character inserted at the beginning.

Example:

print lput 1 array 2 3
print lput "a list "b "c
print lput "a "bc

Output:

{2 3 1}
[b c a]
bca

See also:

Array
List
Word

Table of Content