intersect! ( set1 set2 -- set1 )
Factor handbook » The language » Collections » Sets » Operations on sets

Prev:diff! ( set1 set2 -- set1 )
Next:null? ( set -- ? )


Vocabulary
sets

Inputs
set1a set
set2a set


Outputs
set1a set


Word description
Removes all members from set1 not contained in set2.

Side effects
Modifies set1

Definition