fun f() { var i = 0 while (i<10) { print(i) if (i == 5) { return 42 } else { i = i + 1 } } } f()