kotlin.ranges.until

until

infix fun Int.until(to: Byte): IntRange
infix fun Long.until(to: Byte): LongRange
infix fun Byte.until(to: Byte): IntRange
infix fun Short.until(to: Byte): IntRange
infix fun Long.until(to: Int): LongRange
infix fun Int.until(to: Short): IntRange
infix fun Long.until(to: Short): LongRange
infix fun Byte.until(to: Short): IntRange
infix fun Short.until(to: Short): IntRange

Returns a range from this value up to but excluding the specified to value.

infix fun Char.until(to: Char): CharRange

Returns a range from this value up to but excluding the specified to value.

If the to value is less than or equal to \u0000 the returned range is empty.

infix fun Int.until(to: Int): IntRange
infix fun Byte.until(to: Int): IntRange
infix fun Short.until(to: Int): IntRange

Returns a range from this value up to but excluding the specified to value.

If the to value is less than or equal to Int.MIN_VALUE the returned range is empty.

infix fun Int.until(to: Long): LongRange
infix fun Long.until(to: Long): LongRange
infix fun Byte.until(to: Long): LongRange
infix fun Short.until(to: Long): LongRange

Returns a range from this value up to but excluding the specified to value.

If the to value is less than or equal to Long.MIN_VALUE the returned range is empty.

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/until.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部