InversionList.inverted

Obtains a set that is the inversion of this set.

See the '!' opUnary for the same but using operators.

struct InversionList(SP = GcPolicy)
@property
inverted
()

Examples

auto set = unicode.ASCII;
// union with the inverse gets all of the code points in the Unicode
assert((set | set.inverted).length == 0x110000);
// no intersection with the inverse
assert((set & set.inverted).empty);

Meta