first
Начиная с Kotlin: 1.7
fun IntProgression.first(): Int
fun LongProgression.first(): Long
fun CharProgression.first(): Char
fun UIntProgression.first(): UInt
fun ULongProgression.first(): ULong
Возвращает первый элемент.
Исключения
если прогрессия пуста.
© 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.ranges/first.html