8 lines
824 B
Kotlin
Vendored
8 lines
824 B
Kotlin
Vendored
fun test() {
|
|
listOf(1, 2, 4).<caret>filter { it > 0 }
|
|
}
|
|
|
|
//INFO: <div class='definition'><pre><a href="psi_element://kotlin.collections"><code>kotlin.collections</code></a> <font color="808080"><i>CollectionsKt.class</i></font><br>public inline fun <T> <a href="psi_element://kotlin.collections.Iterable">Iterable</a><<a href="psi_element://kotlin.collections.filter.T">T</a>>.<b>filter</b>(
|
|
//INFO: predicate: (<a href="psi_element://kotlin.collections.filter.T">T</a>) → Boolean
|
|
//INFO: ): <a href="psi_element://kotlin.collections.List">List</a><<a href="psi_element://kotlin.collections.filter.T">T</a>></pre></div><div class='content'><p>Returns a list containing only elements matching the given <a href="psi_element://predicate">predicate</a>.</p></div><table class='sections'></table>
|