stdlib
1.7
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
Common
stdlib
/
kotlin.ranges
/
first
first
fun
IntProgression
.
first
(
)
:
Int
(
source
)
fun
LongProgression
.
first
(
)
:
Long
(
source
)
fun
CharProgression
.
first
(
)
:
Char
(
source
)
fun
UIntProgression
.
first
(
)
:
UInt
(
source
)
fun
ULongProgression
.
first
(
)
:
ULong
(
source
)
Returns the first element.
Since Kotlin
1.7
Throws
No
Such
Element
Exception
if the progression is empty.