help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chained Object Type Predicates


From: Lennart Borgman
Subject: Re: Chained Object Type Predicates
Date: Mon, 8 Jun 2009 15:36:34 +0200

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]