Files
kotlin-fork/idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/applicable_cursorOverParameterUse.kt
T

3 lines
94 B
Kotlin
Vendored

fun <A> applyTwice(f: (A) -> A, x: A) = f(f(x))
val x = applyTwice({ x -> <caret>x + 1 }, 40)