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
|
||||
}
|
||||
Reference in New Issue
Block a user