The OpenD Programming Language

InversionList.add

Add an interval [a, b) to this set.

struct InversionList(SP = GcPolicy)
ref
add
()
(
uint a
,
uint b
)

Examples

CodepointSet someSet;
someSet.add('0', '5').add('A','Z'+1);
someSet.add('5', '9'+1);
assert(someSet['0']);
assert(someSet['5']);
assert(someSet['9']);
assert(someSet['Z']);

Meta