2 intentions for moving lambda functions;

moves lambda functions in function calls inside and outside of the
parenthesis: foo({ it }) <-> foo() { it }
This commit is contained in:
Tal Man
2014-02-08 19:20:25 -05:00
committed by Andrey Breslav
parent a18e2f7cfa
commit 8cf965db7e
48 changed files with 555 additions and 1 deletions
@@ -0,0 +1,3 @@
fun foo() {
<spot>bar(2, { it * 3 })</spot>
}
@@ -0,0 +1,3 @@
fun foo() {
<spot>bar(2) { it * 3 }</spot>
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention moves a lambda expression inside parentheses
</body>
</html>