Skip to content

Instantly share code, notes, and snippets.

@praveenKajla
Created September 3, 2017 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praveenKajla/e26a86535f25d8da772fb20e41d61b7f to your computer and use it in GitHub Desktop.
Save praveenKajla/e26a86535f25d8da772fb20e41d61b7f to your computer and use it in GitHub Desktop.
/**
* 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