complement

..  complement(s)

Returns the set-complement of :obj:`IntSet` ``s``.

Examples

julia> foo = IntSet([1:125]);
julia> bar = complement(foo);

julia> for i in bar
        if(i <= 128)
            println(i);
        else
            break;
        end
    end
0
126
127
128

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: