Turtle, Observer, Patch

butlast (bl) value

Parameters:
value List or string The list of data or string to operate on

Description:
When given a list of data, returns the new value of value with the last item removed. The input list is not changed.

When given a string, returns a new string with the last character removed. The input string is not changed.

Examples:
butlast [4 5 6 7] returns [4 5 6].

Related Commands:
butfirst first last lput sentence