Really fix set algebra subtraction.
This commit is contained in:
parent
9981eead1b
commit
4333f566ba
1 changed files with 3 additions and 1 deletions
|
@ -60,6 +60,8 @@
|
|||
(bst-EQ? ls1)))
|
||||
|
||||
(define (lset-subtract ls1 ls2)
|
||||
(foldl lset-remove ls1 (lset->list ls2) #t))
|
||||
(foldl (lambda (ls e)
|
||||
(lset-remove ls e #t))
|
||||
ls1 (lset->list ls2)))
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue