Kotlin doesn’t have the ternary operator but `if/e...
# getting-started
p
Kotlin doesn’t have the ternary operator but
if/else
can be used as an expression:
(if (condition) first else second).add(e)
👍 1