set intersection - part-cw/lambdanative GitHub Wiki
(set-intersection s1 s2)
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)