6 lines
333 B
Kotlin
Vendored
6 lines
333 B
Kotlin
Vendored
fun test() {
|
|
listOf(1, 2, 4).<caret>filter { it > 0 }
|
|
}
|
|
|
|
//INFO: <b>public</b> inline <b>fun</b> <T> Iterable<T>.filter(predicate: (T) → Boolean): List<T> <i>defined in</i> kotlin.collections<p>Returns a list containing only elements matching the given <a href="psi_element://predicate">predicate</a>.</p>
|