mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
* Use bold font to render all modifiers * Render 'external' according to the style guide, right after modality
6 lines
662 B
Kotlin
Vendored
6 lines
662 B
Kotlin
Vendored
fun test() {
|
|
listOf(1, 2, 4).<caret>filter { it > 0 }
|
|
}
|
|
|
|
//INFO: <pre><b>public</b> <b>inline</b> <b>fun</b> <T> <a href="psi_element://kotlin.collections.Iterable">Iterable</a><<a href="psi_element://kotlin.collections.filter.T">T</a>>.filter(predicate: (<a href="psi_element://kotlin.collections.filter.T">T</a>) → Boolean): <a href="psi_element://kotlin.collections.List">List</a><<a href="psi_element://kotlin.collections.filter.T">T</a>> <i>defined in</i> kotlin.collections <i>in file</i> CollectionsKt.class</pre><p>Returns a list containing only elements matching the given <a href="psi_element://predicate">predicate</a>.</p>
|