trait CommutativeEqual[A] extends AssociativeEqual[A] with Commutative[A]

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommutativeEqual
  2. Commutative
  3. AssociativeEqual
  4. Equal
  5. Associative
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def combine(l: => A, r: => A): A
    Definition Classes
    Associative

Concrete Value Members

  1. final def both[B](that: => Equal[B]): Equal[(A, B)]

    Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

    Constructs an Equal[(A, B)] given an Equal[A] and Equal[B] by first comparing the A values for equality and then comparing the B values for equality, if necessary.

    Definition Classes
    Equal
  2. final def bothWith[B, C](that: => Equal[B])(f: (C) => (A, B)): Equal[C]

    Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B).

    Constructs an Equal[C] given an Equal[A], an Equal[B] and a function f to transform a C value into an (A, B). The instance will convert each C value into an (A, B), compare the A values for equality, and then compare the B values for equality if necessary.

    Definition Classes
    Equal
  3. final def commute: Commutative[A]

    Returns a new Commutative instance that describes the same binary operator but applied in reverse order.

    Returns a new Commutative instance that describes the same binary operator but applied in reverse order. Since the operation is commutative this instance is guaranteed to return the same results as the original instance but one order of combination or the other may be more efficient in certain cases.

    Definition Classes
    Commutative
  4. def contramap[B](f: (B) => A): Equal[B]

    Constructs an Equal[B] given an Equal[A] and a function f to transform a B value into an A value.

    Constructs an Equal[B] given an Equal[A] and a function f to transform a B value into an A value. The instance will convert each B value into an A and the compare the A values for equality.

    Definition Classes
    Equal
  5. final def either[B](that: => Equal[B]): Equal[Either[A, B]]

    Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B].

    Constructs an Equal[Either[A, B]] given an Equal[A] and an Equal[B]. The instance will compare the Either[A, B] values and if both are Right or Left compare them for equality.

    Definition Classes
    Equal
  6. final def eitherWith[B, C](that: => Equal[B])(f: (C) => Either[A, B]): Equal[C]

    Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B].

    Constructs an Equal[C] given an Equal[A], an Equal[B], and a function f to transform a C value into an Either[A, B]. The instance will convert each C value into an Either[A, B] and then if both are Right or Left compare them for equality.

    Definition Classes
    Equal
  7. final def equal(l: A, r: A): Boolean

    Returns whether two values of type A are equal.

    Returns whether two values of type A are equal.

    Definition Classes
    Equal
  8. final def intersperse(middle: A): Associative[A]
    Definition Classes
    Associative
  9. def multiplyOption(n: Int)(a: A): Option[A]
    Definition Classes
    Associative
  10. final def notEqual(l: A, r: A): Boolean

    Returns whether two values of type A are not equal.

    Returns whether two values of type A are not equal.

    Definition Classes
    Equal
  11. final def repeat(a: A)(n: Int): A
    Definition Classes
    Associative
  12. def toScala[A1 <: A]: Equiv[A1]
    Definition Classes
    Equal