fun f(list: List) { list.filter { (it as String).foo() } } fun String.foo(): Boolean = true