Make script launcher aware of custom scripts, minor correction is core env

This commit is contained in:
Ilya Chernikov
2016-05-30 15:38:00 +02:00
parent 8ba9d2b75c
commit b63ed0f4aa
11 changed files with 145 additions and 71 deletions
+10
View File
@@ -0,0 +1,10 @@
// Expecting two string parameters
fun fib(n: Int): Int {
val v = if(n < 2) 1 else fib(n-1) + fib(n-2)
System.out.println("fib($n)=$v")
return v
}
System.out.println("num: ${args[0]} (${args[1]})")
val result = fib(java.lang.Integer.parseInt(args[0]))