Put lambda parameters on the same line as opening curly brace

This commit is contained in:
Dmitry Jemerov
2017-05-29 14:52:52 +02:00
parent af941bfdf5
commit f32dc9e84e
8 changed files with 16 additions and 30 deletions
@@ -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)
}
@@ -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
}