identityIntersection<T> static method

bool identityIntersection<T>(
  1. CustomSet<T> a,
  2. CustomSet<T> universal
)

Verifies the Identity Law for Intersection.

Law: A ∩ U = A

The intersection of any set with the universal set equals the original set.

Implementation

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