Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / compareValuesBy
Go to reference

compareValuesBy

fun <T> compareValuesBy(a: Attribute<T>, b: Attribute<T>, vararg selectors: Attribute<(T) -> Comparable<*>?>): Attribute<Int>

Same as compareValuesBy, but accepts Attribute and returns a new Attribute.

Calling this function is equivalent to use transform and calling compareValuesBy in the transformation function.

This is simply a convenience function.

See Also

kotlin.comparisons.compareValuesBy