From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: lset= on no lists Date: Mon, 24 Jan 2005 07:45:35 +1100 Message-ID: <87sm4rkh74.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1106513234 10001 80.91.229.6 (23 Jan 2005 20:47:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2005 20:47:14 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 23 21:47:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CsodW-0005vY-00 for ; Sun, 23 Jan 2005 21:47:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Csoph-0004hK-Fi for guile-devel@m.gmane.org; Sun, 23 Jan 2005 15:59:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Csopa-0004fz-Hd for guile-devel@gnu.org; Sun, 23 Jan 2005 15:59:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CsopX-0004e6-88 for guile-devel@gnu.org; Sun, 23 Jan 2005 15:59:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CsopW-0004da-Q7 for guile-devel@gnu.org; Sun, 23 Jan 2005 15:59:30 -0500 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CsocF-0003ck-95 for guile-devel@gnu.org; Sun, 23 Jan 2005 15:45:47 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j0NKjgA6006416 for ; Mon, 24 Jan 2005 07:45:42 +1100 Original-Received: from localhost (ppp2A47.dyn.pacific.net.au [61.8.42.71]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j0NKjfVT029059 for ; Mon, 24 Jan 2005 07:45:41 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1Csoc4-0000L0-00; Mon, 24 Jan 2005 07:45:36 +1100 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4728 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4728 --=-=-= * srfi-1.scm (lset=): Allow no list arguments, per srfi spec example. --=-=-= Content-Disposition: attachment; filename=srfi-1.scm.lseteq.diff --- srfi-1.scm.~1.8.2.20.~ 2004-12-06 11:35:47.000000000 +1100 +++ srfi-1.scm 2005-01-24 07:43:25.000000000 +1100 @@ -961,10 +961,10 @@ (and (every (lambda (el) (member el (car r) =)) f) (lp (car r) (cdr r))))))) -(define (lset= = list1 . rest) +(define (lset= = . rest) (if (null? rest) #t - (let lp ((f list1) (r rest)) + (let lp ((f (car rest)) (r (cdr rest))) (or (null? r) (and (every (lambda (el) (member el (car r) =)) f) (every (lambda (el) (member el f =)) (car r)) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel --=-=-=--