eq
context(equality: Equality<Element>)
infix inline fun <Element> Element.eq(other: Element): Boolean(source)
infix inline fun <Element> Element.eq(other: Element): Boolean(source)
Checks equality of this and other elements in the provided Equality context. A shortcut for 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.