7 lines
334 B
Kotlin
Vendored
7 lines
334 B
Kotlin
Vendored
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> <i>defined in</i> kotlin<br/><p>Returns a list containing all elements matching the given <a href="psi_element://predicate">predicate</a>.
|
|
//INFO: </p>
|