janvladimirmostert
02/07/2017, 8:30 PMfun calc(n: Int) = for (i in 1..10) {
"blah-$i"
if (i == n) {
"someothervalue"
break
}
}
Is there any way to figure out if an if-statement is an expression or just used as a regular statement ?