Link Search Menu Expand Document

Table of contents


equals (function)

Similar to R.equals, but:

  • Requires an explicit Eq<A> instance
  • Does not directly handle cyclical data structures, relies on `Eq instance to determine equality
  • Does not dispatch to the equals method of both arguments if present

Signature

export function equals<A>(
  E: Eq<A>
): {
  (x: A, y: A): boolean;
  (x: A): Predicate<A>;
}; { ... }

Added in v0.1.7