Spec-Zone.ru › Kotlin 2

rangeUntil

kotlin-stdlib/kotlin/Short/rangeUntil

Начиная с Kotlin: 1.9

expect operator fun rangeUntil(other: Byte): IntRange
expect operator fun rangeUntil(other: Short): IntRange
expect operator fun rangeUntil(other: Int): IntRange
expect operator fun rangeUntil(other: Long): LongRange

Создает диапазон от этого значения до указанного значения other, не включая его.

Если значение other меньше или равно значению this, возвращаемый диапазон пуст.

© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-short/range-until.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API