Union

Produces a $(D_PSYMBOL Set) containing all elements of the given Sets.

template Union (
Sets...
) if (
allSatisfy!(ApplyLeft!(isInstanceOf, Set), Sets)
) {}

Members

Aliases

Union
alias Union = Set!(Impl!Sets)
Undocumented in source.

Parameters

Sets

List of $(D_PSYMBOL Set) instances.

Return Value

Set-theoretic union of all Sets.

Examples

alias S1 = Set!(2, 5, 8, 4);
alias S2 = Set!(3, 8, 4, 1);
static assert(Union!(S1, S2).Seq == AliasSeq!(2, 5, 8, 4, 3, 1));

See Also

$(D_PSYMBOL Set).

Meta