6 lines
269 B
Kotlin
6 lines
269 B
Kotlin
fun test() {
|
|
listOf(1, 2, 4).<caret>filter { it > 0 }
|
|
}
|
|
|
|
// INFO: inline <b>public</b> <b>fun</b> <T> Iterable<T>.filter(predicate: (T) → Boolean): List<T><br/><p>Returns a list containing all elements matching the given *predicate*<br/></p>
|