union!

union!(s, iterable)

Union each element of iterable into set s in-place.

Examples

julia> s = Set();

julia> union!(s, [1:5]);

julia> union!(s, [-5:2:0]);

julia> s
Set{Any}({4,-3,-1,2,3,-5,5,1})

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
Details

Checking you are not a robot: