set remove - part-cw/lambdanative GitHub Wiki
(set-remove e s)
Removes the element from the set if it exists, and returns new set.
Parameter | Description |
---|---|
e | Element |
s | Set |
Example
> (define a (list->set '(1 2 3) <))
> (set! a (set-remove 2 a))
> (set->list a)
(1 3)