arrow-core-data / arrow.typeclasses / Eq

Eq

interface Eq<in F>

A type class used to determine equality between 2 instances of the same type F in a type safe way.

Functions

eqv Compares two instances of F and returns true if they’re considered equal for this instance.abstract fun F.eqv(b: F): Boolean
neqv Compares two instances of F and returns true if they’re considered not equal for this instance.open fun F.neqv(b: F): Boolean

Companion Object Functions

any Retrieve an Eq that defines all instances as equal for type F.fun any(): Eq<Any?>
invoke Construct an Eq from a function (F, F) -> Boolean.operator fun <F> invoke(feqv: (F, F) -> Boolean): Eq<F>

Inheritors

Hash A type class used to represent hashing for objects of type Finterface Hash<in F> : Eq<F>
Order interface Order<F> : Eq<F>

Type Class Hierarchy

Do you like Arrow?

Arrow Org
<