Join Slack
Powered by
Kotlin doesn’t have the ternary operator but `if/e...
# getting-started
p
paulblessing
09/30/2016, 3:07 PM
Kotlin doesn’t have the ternary operator but
if/else
can be used as an expression:
(if (condition) first else second).add(e)
👍 1
Open in Slack
Previous
Next