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

Returns new set with the specified element adjoined

Parameter Description
e Element to adjoin
s Existing set

Example

> (define a (list->set '(1 2 3) <))
> (set! a (set-adjoin 4 a))
> (set->list a)
(1 4 3 2)
Clone this wiki locally