Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / kotlin.Comparable / compareTo
Go to reference

compareTo

fun <T> Comparable<T>.compareTo(other: Attribute<T>): Attribute<Int>

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

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

This is simply a convenience function.

See Also

kotlin.Comparable.compareTo