View kotlin-python-slice.kt
import kotlin.math.min | |
object start { | |
infix fun to(other: Int) = RangeTuple(0, other) | |
infix fun to(other: end) = RangeTuple(0, Int.MAX_VALUE) | |
} | |
object end | |
infix fun Int.to(other: end) = RangeTuple(this, Int.MAX_VALUE) |
OlderNewer