symdiff

symdiff(s1,s2...)

Construct the symmetric difference of elements in the passed in sets or arrays. Maintains order with arrays.

Examples

julia> s1 = Set("Hello");
julia> s2 = Set("World");

julia> symdiff(s1,s2)
Set{Char}({'d','e','H','r','W'})
julia> symdiff(sin(10), 1, 0:20)
21-element Array{Float64,1}:
 -0.544021
  0.0     
  2.0     
  3.0     
  4.0     
  5.0     
  6.0     
  7.0     
  8.0     
  9.0     
 10.0     
 11.0     
 12.0     
 13.0     
 14.0     
 15.0     
 16.0     
 17.0     
 18.0     
 19.0     
 20.0     

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: