Reputation: 69
I am trying to use butlast
but for some reason, I get this
error: no function definition: BUTLAST. Any ideas why?
Upvotes: 1
Views: 464
Reputation: 48775
butlast
does not exist in AutoLisp so that the error says there is such function is on point.
You can define it though
(defun butlast (lst)
(reverse (cdr (reverse lst))))
Upvotes: 3