Created
September 3, 2017 07:12
-
-
Save praveenKajla/e26a86535f25d8da772fb20e41d61b7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Performs the given [action] on each element. | |
*/ | |
@kotlin.internal.HidesMembers | |
public header inline fun <T> Iterable<T>.forEach(action: (T) -> Unit): Unit | |
/** | |
* Performs the given [action] on each element, providing sequential index with the element. | |
* @param [action] function that takes the index of an element and the element itself | |
* and performs the desired action on the element. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment