core-ktx / androidx.util / android.util.Range / toClosedRange

toClosedRange

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

Returns this Range as a ClosedRange.