nullIntersection<T> static method

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

Verifies the Null/Domination Law for Intersection.

Law: A ∩ ∅ = ∅

The intersection of any set with the empty set equals the empty set.

Implementation

static bool nullIntersection<T>(CustomSet<T> a) {
  final empty = CustomSet<T>.empty();
  return SetOperations.intersection(a, empty).isEmpty;
}