Evaluate expression: evaluate block of code (CODE_BLOCK mode)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user