OpenEndRange

data class OpenEndRange<out Element>(val startInclusive: Element, val endExclusive: Element)(source)

A wrapper data class that contains values startInclusive and endExclusive to be used by OpenEndRange.contains operator that checks if the provided value lies in a right-open interval [startInclusive; endExclusive).

Parameters

startInclusive

The start of the interval (inclusive).

endExclusive

The end of the interval (exclusive).

Type Parameters

Element

The type of elements in the range.

Constructors

Link copied to clipboard
constructor(startInclusive: Element, endExclusive: Element)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
context(order: Order<Element>)
operator fun <Element> OpenEndRange<Element>.contains(element: Element): Boolean

Checks if the provided element lies in a right-open interval from OpenEndRange.startInclusive to OpenEndRange.endExclusive with respect to contextual order.