[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking if all values of a list are true
From: |
David Kastrup |
Subject: |
Re: Checking if all values of a list are true |
Date: |
Fri, 11 Jul 2008 18:38:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
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