Evaluate expression: evaluate block of code (CODE_BLOCK mode)

This commit is contained in:
Natalia Ukhorskaya
2014-05-07 12:25:11 +04:00
parent 0677075335
commit 511d270032
7 changed files with 65 additions and 31 deletions
@@ -1,6 +1,7 @@
package collections
fun main(args: Array<String>) {
val ar = intArray(1, 2, 100, 200)
//Breakpoint!
args.size
}
@@ -0,0 +1,5 @@
ar.map { if (it > 50) "big" else "small" }
.filter { it == "small" }
.size
// RESULT: 2: I
@@ -0,0 +1,4 @@
val a = 1
a + args.size
// RESULT: 1: I