on Each
Performs the given action on each element and returns the array itself afterwards.
Since Kotlin
1.4
Performs the given action on each element and returns the collection itself afterwards.
Since Kotlin
1.1
inline fun <K, V, M : Map<out K, V>> M.onEach(action: (Map.Entry<K, V>) -> Unit): M
Content copied to clipboard
Performs the given action on each entry and returns the map itself afterwards.
Since Kotlin
1.1