leq

context(order: Order<Element>)
infix inline fun <Element> Element.leq(other: Element): Boolean(source)

Alternative notation to <= operator that uses Order.compareTo for comparison. Shorthand for lessThenOrEqual.

Receiver

The left element in the comparison.

Return

true if this element is less than or equal to the other element according to the order context.

Context Parameters

order

The order context in which to perform the comparison.

Parameters

other

The right element to compare with this element.

Type Parameters

Element

The type of elements being compared.