1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00

(lset-adjoin): Actually use the given `=' procedure.

Test membership only on the given `list', not `acc', as per the spec.
This commit is contained in:
Kevin Ryde 2005-01-28 21:30:47 +00:00
parent b66ccb2693
commit a33931ae8d

View file

@ -737,7 +737,7 @@
(let lp ((l rest) (acc list)) (let lp ((l rest) (acc list))
(if (null? l) (if (null? l)
acc acc
(if (member (car l) acc) (if (member (car l) list (lambda (x y) (= y x)))
(lp (cdr l) acc) (lp (cdr l) acc)
(lp (cdr l) (cons (car l) acc)))))) (lp (cdr l) (cons (car l) acc))))))