or<A> static method

Eq<A> or<A>(
  1. Eq<A> eq1,
  2. Eq<A> eq2
)

Return an Eq that gives the result of the or of eq1 and eq2.

Note this is idempotent.

Implementation

static Eq<A> or<A>(Eq<A> eq1, Eq<A> eq2) =>
    _Eq((x, y) => eq1.eqv(x, y) || eq2.eqv(x, y));