intersect!(s1, s2)

Intersects sets s1 and s2 and overwrites the set s1 with the result. If needed, s1 will be expanded to the size of s2.


julia> a = IntSet([0:2:20]);    # table of 2

julia> b = IntSet([0:3:30]);    # table of 3

julia> intersect!(a, b);
julia> a

See Also

complement, complement!, intersect, intersect!, issubset, selectperm, selectperm!, Set, setdiff, setdiff!, symdiff, union, union!,

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field

Checking you are not a robot: