Equality

inline fun <Element> Equality(crossinline equalizer: (left: Element, right: Element) -> Boolean): Equality<Element>(source)

Equality builder from an equalizer that checks equality of the left and right elements.

Creates a custom Equality context using the provided comparison logic.

Return

An Equality instance that uses the provided equalizer function for equality checks.

Parameters

equalizer

A function that takes two elements and returns true if they are equal.

Type Parameters

Element

The type of elements this equality context will handle.