From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Checking if all values of a list are true
Date: Fri, 11 Jul 2008 18:38:59 +0200 [thread overview]
Message-ID: <85lk08tly4.fsf@lola.goethe.zz> (raw)
In-Reply-To: e505795a-be0b-4b3e-96d7-d66108b1e589@m45g2000hsb.googlegroups.com
Nordlöw <per.nordlow@gmail.com> writes:
> How do I check if all values of a list are true?
>
> This is my attempt:
> (reduce 'and '(t t))
>
> but I get the error: and (invalid-function and)
>
> (functionp 'and)
>
> gives true so why on earth doesn't this work?
Special form. Try
(not (memq nil '(t t)))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
prev parent reply other threads:[~2008-07-11 16:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-11 11:23 Checking if all values of a list are true Nordlöw
2008-07-11 11:33 ` Nordlöw
2008-07-11 11:37 ` Nordlöw
2008-07-11 11:51 ` Florian Beck
2008-07-11 11:56 ` Joost Kremers
2008-07-11 16:38 ` David Kastrup [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85lk08tly4.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).