core-ktx / androidx.util / kotlin.ranges.ClosedRange

Extensions for kotlin.ranges.ClosedRange

toRange

fun <T : Comparable<T>> ClosedRange<T>.toRange(): Range<T>

Returns this ClosedRange as a Range.