Spec-Zone.ru › Kotlin 1.7

first

kotlin-stdlib / kotlin.ranges / first
Требования к платформе и версии: JVM (1.7), JS (1.7), Native (1.7)
fun IntProgression.first(): Int
fun LongProgression.first(): Long
fun CharProgression.first(): Char
fun UIntProgression.first(): UInt
fun ULongProgression.first(): ULong

Возвращает первый элемент.

Исключения

NoSuchElementException - если последовательность пустая.

© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.ranges/first.html

Spec-Zone.ru

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