Put lambda parameters on the same line as opening curly brace
This commit is contained in:
@@ -4,7 +4,6 @@ data class XY(val x: String, val y: String)
|
||||
|
||||
fun convert(xy: XY, foo: (XY) -> Unit) = foo(xy)
|
||||
|
||||
fun foo(xy: XY) = convert(xy) {
|
||||
(x, y) ->
|
||||
fun foo(xy: XY) = convert(xy) { (x, y) ->
|
||||
println(x + y)
|
||||
}
|
||||
+1
-2
@@ -2,7 +2,6 @@ data class XY(val x: String, val y: String)
|
||||
|
||||
fun convert(xy: XY, foo: (XY) -> String) = foo(xy)
|
||||
|
||||
fun foo(xy: XY) = convert(xy) {
|
||||
(x, y) ->
|
||||
fun foo(xy: XY) = convert(xy) { (x, y) ->
|
||||
x + y
|
||||
}
|
||||
Vendored
+1
-2
@@ -1,6 +1,5 @@
|
||||
fun main() {
|
||||
val oom: (Int)->Int = {
|
||||
it: Int ->
|
||||
val oom: (Int)->Int = { it: Int ->
|
||||
it * 2
|
||||
}
|
||||
}
|
||||
+1
-2
@@ -1,5 +1,4 @@
|
||||
val foo: (Long) -> String = {
|
||||
it: Long ->
|
||||
val foo: (Long) -> String = { it: Long ->
|
||||
|
||||
|
||||
it.toString()
|
||||
|
||||
Reference in New Issue
Block a user