* lset= on no lists
@ 2005-01-23 20:45 Kevin Ryde
0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2005-01-23 20:45 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 79 bytes --]
* srfi-1.scm (lset=): Allow no list arguments, per srfi spec example.
[-- Attachment #2: srfi-1.scm.lseteq.diff --]
[-- Type: text/plain, Size: 524 bytes --]
--- 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))
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-23 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-23 20:45 lset= on no lists Kevin Ryde
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).