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
/
firstOrNull
first
Or
Null
fun
IntProgression
.
firstOrNull
(
)
:
Int
?
(
source
)
fun
LongProgression
.
firstOrNull
(
)
:
Long
?
(
source
)
fun
CharProgression
.
firstOrNull
(
)
:
Char
?
(
source
)
fun
UIntProgression
.
firstOrNull
(
)
:
UInt
?
(
source
)
fun
ULongProgression
.
firstOrNull
(
)
:
ULong
?
(
source
)
Returns the first element, or
null
if the progression is empty.
Since Kotlin
1.7