Refactored ReplaceExplicitFunctionLiteralParamWithItIntention

This commit is contained in:
Valentin Kipyatkov
2015-04-28 18:57:57 +03:00
parent 65d59467a8
commit c7937f181b
4 changed files with 53 additions and 60 deletions
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun applyTwice<A>(f: (A) -> A, x: A) = f(f(x))
val x = applyTwice({ p -> p + <caret>1 }, 40)