3 ms·
Probably not used to seeing lambdas inside of parens: .get("/", ctx -> ctx.result("Hello World")) Could also be written as .get("/") { ctx -> ctx.result(
by gavinray 4y ago
Probably not used to seeing lambdas inside of parens:
.get("/", ctx -> ctx.result("Hello World"))
Could also be written as
.get("/") { ctx -> ctx.result("Hello World") }
The second form seems much more common in Kotlin.
- tipsee 4y agoYeah, no, he was 100% correct, I was just looking at the wrong snippet. It's been fixed now :)