onEach
Performs the given action on each element and returns the array itself afterwards.
Since Kotlin
1.4Performs the given action on each element and returns the collection itself afterwards.
Since Kotlin
1.1Performs the given action on each entry and returns the map itself afterwards.