Iterable
Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.
Since Kotlin
1.0Parameters
T
the type of element being iterated over. The iterator is covariant in its element type.
T
the type of element being iterated over. The iterator is covariant in its element type.
Functions
Inheritors
Extensions
Link copied to clipboard
Link copied to clipboard
fun <C : MutableCollection<in R>, R> Iterable<*>.filterIsInstanceTo(destination: C, klass: Class<R>): C
fun <C : MutableCollection<in R>, R> Iterable<*>.filterIsInstanceTo(destination: C, klass: Class<R>): C
Appends all elements that are instances of specified class to the given destination.
Since Kotlin 1.0
Link copied to clipboard
Returns a new SortedSet of all elements.
Since Kotlin 1.0