equalsTo

context(equality: Equality<Element>)
infix inline fun <Element> Element.equalsTo(other: Element): Boolean(source)

Checks equality of this and other elements in the provided Equality context.

A bridge contextual function for Equality.equalsTo.

Receiver

The element to check for equality.

Return

true if this element equals the other element according to the provided equality context, false otherwise.

Context Parameters

equality

The equality context in which to perform the comparison.

Parameters

other

The element to compare with this element.

Type Parameters

Element

The type of elements being compared.