Butlast

butlast (bl) word-or-list

Reports all but the last component of a word or list. See butfirst, first, and last.

Examples:

show butlast [0 1 2 3]

0 1 2

show butlast "welcome

welcom