
Note: This lesson is very much a work in progress. Java equivalent code only jumps over single. To help make your life easier, this lesson shares examples for the most common methods that are available to sequential collections classes. The Java API client provides strongly typed requests and responses for all Elasticsearch APIs. As you can see, Kotlin expects to exit the loop right after index childrenCount condition gets reached. destination: C, transform: (index: Int, T) -> R.

Kotlin collections classes have many methods on them - many. Applies the given transform function to each element and its index in the original collection and appends the results to the given destination.
