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