// FIR_IGNORE // collections/List collections/List // │ │ fun copyWhenGreater(list: List, threshold: T): List where T : CharSequence, T : Comparable { // copyWhenGreater.list: collections/List // │ fun collections/Iterable.filter((T) -> Boolean): collections/List // │ │ copyWhenGreater..it: T // │ │ │ fun (Comparable).compareTo(T): Int // │ │ │ │ copyWhenGreater.threshold: T // │ │ │ │ │ fun collections/Iterable.map((T) -> String): collections/List // │ │ │ │ │ │ copyWhenGreater..it: T // │ │ │ │ │ │ │ fun (Any).toString(): String // │ │ │ │ │ │ │ │ return list.filter { it > threshold }.map { it.toString() } } fun main() { // collections/List // │ fun collections/listOf(vararg String): collections/List // │ │ val list = listOf("1", "2", "3") // collections/List // │ fun copyWhenGreater(collections/List, String): collections/List where T : Comparable // │ │ val main.list: collections/List // │ │ │ val copy = copyWhenGreater(list, "2") }