https://kotlinlang.org logo
m

mzgreen

02/22/2017, 1:50 PM
Copy code
fun foo() {
    val a = getAFromSomewhere()
    doSthWithA(a ?: return)
    doSthElse() 
}
is there any keyword that I could use instead of
return
to just move to next line instead of returning from the whole function body? like
continue
in loops