From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Checking if all values of a list are true
Date: 11 Jul 2008 11:56:16 GMT [thread overview]
Message-ID: <slrng7eift.2vq.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: 2d973602-87f8-4d16-a031-a99bab267a36@y21g2000hsf.googlegroups.com
Nordlöw wrote:
> It would be even better if Emacs already had a function typically
> named any-p(arg-list) that returned t if all values in arg-list are
> non-nil.
(defmacro all-true (lst)
`(and ,@lst)
AND is not a function (or a macro) but a special form. in my emacs (GNU
Emacs 23.0.60.1), (functionp and) returns nil, not t. which is presumably
why functions such as reduce, funcall, mapcar etc. do not accept it as an
argument.
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
next prev parent reply other threads:[~2008-07-11 11:56 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 [this message]
2008-07-11 16:38 ` David Kastrup
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrng7eift.2vq.joostkremers@j.kremers4.news.arnhem.chello.nl \
--to=joostkremers@yahoo.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.