isEmpty method

bool isEmpty(
  1. T a,
  2. Eq<T> eq
)

Tests if a is the identity (empty).

Implementation

bool isEmpty(T a, Eq<T> eq) => eq.eqv(a, empty);