idempotentUnion<T> static method

bool idempotentUnion<T>(
  1. CustomSet<T> a
)

Verifies the Idempotent Law for Union.

Law: A ∪ A = A

The union of a set with itself equals the original set.

Implementation

static bool idempotentUnion<T>(CustomSet<T> a) =>
    SetOperations.union(a, a).equals(a);