forEachIndexed
@ExperimentalUnsignedTypes
inline
fun
ULongArray
.
forEachIndexed
(
action
:
(
index
:
Int
,
ULong
)
->
Unit
)
(source)
@ExperimentalUnsignedTypes
inline
fun
UByteArray
.
forEachIndexed
(
action
:
(
index
:
Int
,
UByte
)
->
Unit
)
(source)
@ExperimentalUnsignedTypes
inline
fun
UShortArray
.
forEachIndexed
(
action
:
(
index
:
Int
,
UShort
)
->
Unit
)
(source)
Performs the given action on each element, providing sequential index with the element.
Parameters
action
- function that takes the index of an element and the element itself
and performs the action on the element.