ListKOrder

interface ListKOrder<A> : Order<ListK<A>> (source)

Lexicographic Order instance for ListK using orderA.

Properties

Link copied to clipboard
abstract val orderA: Order<A>

Functions

Link copied to clipboard
open override fun compare(a: ListK<A>, b: ListK<A>): Int

Compares a with b: negative when a < b, zero when equivalent, positive when a > b.

Link copied to clipboard
open override fun eqv(a: ListK<A>, b: ListK<A>): Boolean

Returns true when a and b are equivalent.

Link copied to clipboard
open fun gt(a: ListK<A>, b: ListK<A>): Boolean

Returns true when a is strictly greater than b.

Link copied to clipboard
open fun gteqv(a: ListK<A>, b: ListK<A>): Boolean

Returns true when a is greater than or equivalent to b.

Link copied to clipboard
open fun lt(a: ListK<A>, b: ListK<A>): Boolean

Returns true when a is strictly less than b.

Link copied to clipboard
open fun lteqv(a: ListK<A>, b: ListK<A>): Boolean

Returns true when a is less than or equivalent to b.

Link copied to clipboard
open fun max(a: ListK<A>, b: ListK<A>): ListK<A>

Returns the larger of a and b, preferring a on ties.

Link copied to clipboard
open fun min(a: ListK<A>, b: ListK<A>): ListK<A>

Returns the smaller of a and b, preferring a on ties.

Link copied to clipboard
open fun neqv(a: ListK<A>, b: ListK<A>): Boolean

Returns true when a and b are not equivalent.

Link copied to clipboard

Returns a Comparator for use with the standard library (e.g. sortedWith).