Copy except the last element

butlast collection
butlast word
bl collection
bl word

If the argument is a collection (list or array), creates its copy without the last element.
If the argument is a word, returns its copy without the last letter.

Example:

print bl [a b c]
print bl "word

Output:

[a b]
wor

See also:

Array
List
Word

Table of Content