Expressive & Efficient Collection Processing in Kotlin
This Presentation covers Kotlin Collections Examples and Samples of how to do aggregating, transformation, searching, filtering and checks and actions on Kotlin Collections
Presented on September 14th,2019 at Kotlin Everywhere Nairobi Episode 03
Iterable<E> { public val size: Int public fun isEmpty(): Boolean public operator fun contains(element: @UnsafeVariance E): Boolean override fun iterator(): Iterator<E> public fun containsAll(elements: Collection<@UnsafeVariance E>): Boolean }
Operators - Functional operations plus,minus, plus assign and minus assign • Transformers - build new collections based on conditions provided • Aggregators - operations that return single value based on collection content • Searching - getting particular elements • Filtering - filter-in with some predicate/condition • Actions - [action] on a particular iterable