[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To be a list or not
From: |
Nick Roberts |
Subject: |
Re: To be a list or not |
Date: |
Sat, 29 Dec 2007 10:47:45 +1300 |
> The first of these complaints that it wants a list, the second says is
> is a list:
No it doesn't.
> ;; (length '(prop . val))
Debugger entered--Lisp error: (wrong-type-argument listp val)
length((prop . val))
So it's saying that val should be a list:
(length '(prop . (val)))
2
'(prop . (val))
(prop val)
> ;; (listp '(prop . val))
-- Function: length sequence
This function returns the number of elements in SEQUENCE. If
SEQUENCE is a dotted list, a `wrong-type-argument' error is
signaled.
I would start with the manual.
--
Nick http://www.inet.net.nz/~nickrob
- To be a list or not, Lennart Borgman (gmail), 2007/12/28
- Re: To be a list or not,
Nick Roberts <=
- Re: To be a list or not, Lennart Borgman (gmail), 2007/12/28
- Re: To be a list or not, Nick Roberts, 2007/12/28
- Re: To be a list or not, Lennart Borgman (gmail), 2007/12/28
- Re: To be a list or not, Bob Rogers, 2007/12/28
- Re: To be a list or not, Stephen J. Turnbull, 2007/12/29
- Re: To be a list or not, Miles Bader, 2007/12/29
- Re: To be a list or not, Tom Tromey, 2007/12/29
- Re: To be a list or not, Andreas Schwab, 2007/12/29
- Re: To be a list or not, Tom Tromey, 2007/12/31
- Re: To be a list or not, Andreas Schwab, 2007/12/31