firstOrNull
@ExperimentalUnsignedTypes
inline
fun
ULongArray
.
firstOrNull
(
predicate
:
(
ULong
)
->
Boolean
)
:
ULong
?
(source)
@ExperimentalUnsignedTypes
inline
fun
UByteArray
.
firstOrNull
(
predicate
:
(
UByte
)
->
Boolean
)
:
UByte
?
(source)
@ExperimentalUnsignedTypes
inline
fun
UShortArray
.
firstOrNull
(
predicate
:
(
UShort
)
->
Boolean
)
:
UShort
?
(source)
Returns the first element matching the given
predicate
, or
null
if element was not found.
Returns the first element, or
null
if the collection is empty.