Alpesh Vas
11/06/2018, 8:09 PMfun runThis() : String? {
val a: String? = null
val b = "John"
a?.let{if(a=="john") return b}?: return b
return "c"
}
What will it return ?
Try to answer this without running the snippet in console.
It's been 2 month since I have started Kotlin and came across similar issue on our codebase.