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

Returns the intersection of two sets.

Parameter Description
s1 Set
s2 Set

Example

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