Kotlin Ternary Conditional Operator -


what equivalent of expression in kotlin?

a ? b : c 

this not valid code in kotlin.

in kotlin, if statements expressions. following code equivalent:

if (a) b else c 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -