Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vikram
on July 18, 2008
|
parent
|
context
|
favorite
| on:
Ninety-Nine Lisp Problems
I think you don't really want to use length. Since it is a program evaluating last it might not be that bad as you have to goto the last element anyway.
Here is mine:
(defun our-last (list) (if (rest list) (our-last (rest list)) list))
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Here is mine:
(defun our-last (list) (if (rest list) (our-last (rest list)) list))