Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Apply-macro?

From: Kent M Pitman <pit...@world.std.com>
Subject: Re: Apply-macro?
Date: 1998/11/05
Message-ID: <sfwg1bxydct.fsf@world.std.com>#1/1
X-Deja-AN: 408820943
Sender: pit...@world.std.com (Kent M Pitman)
References: <3641EBDD.3C20@cs.uu.nl> <364220CE.3C60E46D@IntelliMarket.Com>
Organization: The World Public Access UNIX, Brookline, MA
Newsgroups: comp.lang.lisp

Kelly Murray <k...@IntelliMarket.Com> writes:

>  (loop for val in lst 
>     do
>     (if val (return t))))

Actually, (loop for val in lst thereis val) is the OR thing,
and       (loop for val in lst always  val) is the AND thing
if you prefer to use loop.

It even does the right thing with the OR'd return value in THEREIS,
i.e., (loop for x in '(nil nil 3 4) thereis x) => 3

I still tend to use SOME and EVERY but not for any principled reason.
The reason there are several tools is to accomodate personal taste.
 --Kent