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:
parent
b66ccb2693
commit
a33931ae8d
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@
|
|||
(let lp ((l rest) (acc list))
|
||||
(if (null? l)
|
||||
acc
|
||||
(if (member (car l) acc)
|
||||
(if (member (car l) list (lambda (x y) (= y x)))
|
||||
(lp (cdr l) acc)
|
||||
(lp (cdr l) (cons (car l) acc))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue