Set.this

Initializes the set from a forward range.

Parameters

R

Range type.

range R

Forward range.

allocator Allocator

Allocator.

Precondition: allocator !is null.

Examples

int[2] range = [1, 2];
Set!int set = Set!int(range[]);

assert(1 in set);
assert(2 in set);

Meta