(last): Handle a list that doesn't end in nil.
This commit is contained in:
parent
420198cbe2
commit
6bfdc2e29f
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ If N is bigger than the length of X, return X."
|
|||
(setq m (1+ m) p (cdr p)))
|
||||
(if (<= n 0) p
|
||||
(if (< n m) (nthcdr (- m n) x) x)))
|
||||
(while (cdr x)
|
||||
(while (consp (cdr x))
|
||||
(setq x (cdr x)))
|
||||
x))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue