Spec-Zone.ru › Kotlin 2

rangeTo

kotlin-stdlib/kotlin/Int/rangeTo

Платформы и требования к версиям: Common (1.0), JS (1.1), JVM (1.0), Native (1.3), Wasm-JS (1.8), Wasm-WASI (1.8)

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

Создаёт диапазон от этого значения до указанного значения other.

© 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/-int/range-to.html

Spec-Zone.ru

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