[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: (BUG LISP) at MIT-MC, CWH at MIT-AI
- From: HIC at MIT-MC (Howard I. Cannon)
- Date: Sun, 3 Sep 78 12:36:00 GMT
- Original-date: 3 SEP 1978 0836-EDT
From: CWH@MIT-AI (Sent by GJS@MIT-AI)
Date: Wed, 9 Feb 78 21:04:52 GMT
Original-Date: 09/02/78 17:04:52 EDT
Subject:
The behavior of LAST seems rather obscure for arguments it is not used to
getting:
------
It isn't obscure, it is quite understandable.
------
(LAST '(A B . C)) --> C
which is essentially useless. I think it should return the last cons in the
structure.
------
This is an old suggestion, but the problem is that it is much easier to CDR down
the list and look for NIL then it is to check at each step whether you have
a CONS, etc....perhaps an initial arg check is in order (at least you better
have handed the thing a CONS). But as for checking every step along the way,
my suggestion is that you write LISP code to do it the way you want to.
--howard