From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Chained Object Type Predicates Date: Mon, 8 Jun 2009 15:36:34 +0200 Message-ID: References: <80c94ce8-8e0b-4ebe-a575-f1f25a6fd734@n8g2000vbb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244468231 7541 80.91.229.12 (8 Jun 2009 13:37:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Jun 2009 13:37:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?UTF-8?B?Tm9yZGzDtnc=?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 08 15:37:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MDf2B-0007aC-9v for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2009 15:37:07 +0200 Original-Received: from localhost ([127.0.0.1]:50136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDf2A-0002Vy-PX for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Jun 2009 09:37:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDf1m-0002S4-78 for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 09:36:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDf1h-0002BE-FB for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 09:36:41 -0400 Original-Received: from [199.232.76.173] (port=51917 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDf1h-0002Ac-BZ for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 09:36:37 -0400 Original-Received: from mail-bw0-f212.google.com ([209.85.218.212]:41556) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDf1g-0000hz-L7 for help-gnu-emacs@gnu.org; Mon, 08 Jun 2009 09:36:36 -0400 Original-Received: by bwz8 with SMTP id 8so1308039bwz.42 for ; Mon, 08 Jun 2009 06:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dYZvaVVV65/a65qN1imaHaPBzs6Wh9J+PffnIpb2WiE=; b=fwPkY2/6cUzCW2iv00IWGemTbNZUHfOn8FpoBOqetffoc3QSEhrBgcuIXWdi9pS59Y wVhGF/Sd5cqehEJ0oC16gPERye3FQfqqKi2nN9GK3j5duYthgrriqnOk+3avJufZg5Ex hEARG2vY/0iVW4idgysl3JcFExNDHejjXDTqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=KQBi0staBncgcrmPwZI6bFMWlFgllgE+uqGjnSlBIu15yMWGuN74sKgPgd/YlTxHjA jzl794RkGnnSt1drobmTDNZy6hFOA2ZKH2yMAWsQap8IKWqN0j8ny6P36N+dKNpU2N8o 8exn6dCiU87aYNSaYRBPtyilnrr0REJXi6hsY= Original-Received: by 10.239.167.212 with SMTP id h20mr533911hbe.68.1244468194699; Mon, 08 Jun 2009 06:36:34 -0700 (PDT) In-Reply-To: <80c94ce8-8e0b-4ebe-a575-f1f25a6fd734@n8g2000vbb.googlegroups.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65039 Archived-At: On Mon, Jun 8, 2009 at 2:39 PM, Nordl=C3=B6w 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.