Skip to content
Chris Petersen edited this page Mar 24, 2016 · 1 revision

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)
Clone this wiki locally