but-first 1.0 butfirst 1.0 bf 1.0 but-last 1.0 butlast 1.0 bl 1.0
but-first list
but-first string
but-last list
but-last string
When used on a list, but-first reports all of the list items of list except the first, and but-last reports all of the list items of list except the last.
On strings, but-first and but-last report a shorter string omitting the first or last character of the original string.
;; mylist is [2 4 6 5 8 12]
set mylist but-first mylist
;; mylist is now [4 6 5 8 12]
set mylist but-last mylist
;; mylist is now [4 6 5 8]
show but-first "string"
;; prints "tring"
show but-last "string"
;; prints "strin"