Set.this

Initializes the set from a static array.

Parameters

n

Array size.

array T[n]

Static array.

allocator Allocator

Allocator.

Precondition: allocator !is null.

Examples

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

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

Meta