Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!godot.cc.duq.edu!newsgate.duke.edu!zombie.ncsc.mil!news.mathworks.com!news.kei.com!nntp.coast.net!torn!watserv3.uwaterloo.ca!news
From: Carl Laurence Gonsalves <clgonsal@undergrad.math.uwaterloo.ca>
Subject: A simple (I hope) Scheme question
Content-Type: text/plain; charset=us-ascii
Message-ID: <31A3933F.4294@undergrad.math.uwaterloo.ca>
Sender: news@watserv3.uwaterloo.ca
Nntp-Posting-Host: cnts1p15.uwaterloo.ca
Content-Transfer-Encoding: 7bit
Organization: University of Waterloo
Mime-Version: 1.0
Date: Wed, 22 May 1996 22:20:47 GMT
X-Mailer: Mozilla 2.0 (Win95; I)
Lines: 16

Is there a standard Scheme function that takes a predicate and a list, 
and returns true if the predicate is true for every element of the list? 
I tried:

(apply and (map <predicate> <list>))

But this doesn't work, since "and" isn't a procedure apparently. I 
figured that this must be a pretty common thing to do (ie: check that 
all of the items in a list match a predicate), so is there a standard 
Scheme function for doing this?

-- 
        Carl Laurence Gonsalves - clgonsal@undergrad.math.uwaterloo.ca
                   Computer Science, University of Waterloo
               http://www.undergrad.math.uwaterloo.ca/~clgonsal/
                   http://www.csclub.uwaterloo.ca/~clgonsal/
