From: Lennart Borgman <lennart.borgman@gmail.com>
To: Nordlöw <per.nordlow@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Chained Object Type Predicates
Date: Mon, 8 Jun 2009 15:36:34 +0200 [thread overview]
Message-ID: <e01d8a50906080636h2674c48had204f469415f2a1@mail.gmail.com> (raw)
In-Reply-To: <80c94ce8-8e0b-4ebe-a575-f1f25a6fd734@n8g2000vbb.googlegroups.com>
On Mon, Jun 8, 2009 at 2:39 PM, Nordlöw<per.nordlow@gmail.com> wrote:
> How should i implement chained type predicate functions, for example
>
> (defun list-of-numbers-p (object) (and (listp object) ...))
>
> should return t if object is of type list (listp) and its elements in
> turn all are of type string (stringp) otherwise nil.
Maybe there is something special implemented for it, but otherwise
just loop over the list and jump out with catch/throw.
prev parent reply other threads:[~2009-06-08 13:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 12:39 Chained Object Type Predicates Nordlöw
2009-06-08 12:58 ` Pascal J. Bourguignon
2009-06-08 13:36 ` Lennart Borgman [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=e01d8a50906080636h2674c48had204f469415f2a1@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=per.nordlow@gmail.com \
/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).