Would this be better: ``` fun calc(n: Int) = for (...
# language-proposals
j
Would this be better:
Copy code
fun 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 ?