[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To be a list or not
From: |
Lennart Borgman (gmail) |
Subject: |
Re: To be a list or not |
Date: |
Sat, 29 Dec 2007 01:18:34 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Nick Roberts wrote:
> > Eh, yes but (sequencep '(prop . val)) also returns t at least in my
> > version of Emacs. But maybe this has been changed?
>
> I don't know what point you are making but all lists are sequences, so
> if listp returns t so must sequencep.
You cited the following from the manual:
> -- 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.
However (sequencp '(prop . val)) returns t.
What I wanted to know was the recommended way to check if something is a
cons cell, but not a sequence, ie something like '(prop . val).
Thanks for the pointer to the manual.
- 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, Nick Roberts, 2007/12/28
- Re: To be a list or not,
Lennart Borgman (gmail) <=
- 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
- Re: To be a list or not, Stephen J. Turnbull, 2007/12/29
- Re: To be a list or not, Bob Rogers, 2007/12/29
- Re: To be a list or not, Richard Stallman, 2007/12/29