Looping

You can use map for looping:

(1..100).map{a->...a}

you can use it as well:

(1..100).map{...it}

If you want to loop a certain amount of times, use repeat

repeat(20){println("hi")}

String interpolation

You can use $ to interpolate values of variables into strings.

var s="World"
print("Hello, $s!") // Prints: Hello, World!

Use ${} to interpolate expression values.

var x=123
var y=456
print("$x+$y-12=${x+y-12}") // Prints: 123+456-12=567