range

fun <T : Comparable<*>> range(lowerBoundType: BoundType, lowerEndpoint: T, upperBoundType: BoundType, upperEndpoint: T): Range<T>

Creates a Range.

Return

created Range

Parameters

lowerBoundType

type of lower bound; if BoundType.NONE the lowerEndpoint value is ignored

lowerEndpoint

value for lower endpoint

upperBoundType

type of lower bound; if BoundType.NONE the upperEndpoint value is ignored

upperEndpoint

value for upper endpoint