Kotlin
val url = lastRadioUrl ?: run {
doSomething()
return
}
// use url which is not null
Swift
guard let url = lastRadioUrl else {
doSomething()
return
}
// use url which is not nil
Kotlin
val url = lastRadioUrl ?: run {
doSomething()
return
}
// use url which is not null
Swift
guard let url = lastRadioUrl else {
doSomething()
return
}
// use url which is not nil