[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)))

'(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

I would start with the manual.

Nick                                           http://www.inet.net.nz/~nickrob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]