Intention to convert anonymous function to lambda

This commit is contained in:
Natalia Ukhorskaya
2015-12-15 10:22:53 +03:00
parent c79ffbac5c
commit 693e158759
27 changed files with 451 additions and 57 deletions
@@ -0,0 +1,7 @@
fun foo2(f: (Int) -> Unit) {
f(1)
}
fun main(args: String) {
foo2 { i -> val p = i }
}