Files
kotlin-fork/idea/testData/refactoring/introduceVariable/FunctionLiteralWithExtraArgs.kt.after
T
2015-11-16 11:29:59 +03:00

5 lines
158 B
Plaintext
Vendored

// WITH_RUNTIME
fun foo(c : Collection<String>){
val predicate: (String) -> Boolean = { it.length() > 1 }
c.filterTo(ArrayList<String>(), predicate)
}