dekee
05/31/2017, 6:49 AMval hr = {
for (i in 1..2) {
for (k in 1..180)
print("—")
println()
}
}
println("Thing one")
hr.invoke()
println("Thing two")
hr.invoke()
perryprog
05/31/2017, 10:28 AMhr
without parens. It’s not really a big deal, it would just look better. adding .invoke()
is just longer than a regular function with hr()
.