Alan Grover <[EMAIL PROTECTED]> writes:
>
> I re-wrote enough of poe.scm to get some things working.
In the cvs head a while ago I changed funcq-assoc to the code below.
Dunno why I didn't do the same in 1.6 (maybe the hashx stuff has
problems too). You're right that it doesn't work.
;; return true if lists X and Y are the same length and each element
;; is `eq?'
(define (eq?-list x y)
(if (null? x)
(null? y)
(and (not (null? y))
(eq? (car x) (car y))
(eq?-list (cdr x) (cdr y)))))
(define (funcq-assoc arg-list alist)
(if (null? alist)
#f
(if (eq?-list arg-list (caar alist))
(car alist)
(funcq-assoc arg-list (cdr alist)))))
_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user