| 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'><tr><td valign='top' class='section'><p>Samples:</td><td valign='top'><p><a href="psi_element://samples.collections.Collections.Filtering.filter"><code>samples.collections.Collections.Filtering.filter</code></a><pre><code>// Unresolved</code></pre></td></table> |