idempotentIntersection<T> static method

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

Verifies the Idempotent Law for Intersection.

Law: A ∩ A = A

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

Implementation

static bool idempotentIntersection<T>(CustomSet<T> a) =>
    SetOperations.intersection(a, a).equals(a);