How do you do a for in Kotlin?
Kotlin for loop is equivalent to the foreach loop in languages like C#.
Read moreWhat does ?: Mean in Kotlin?
length ?: -1. If the expression to the left of ?: is not null , the Elvis operator returns it, otherwise it returns the expression to the right . Note that the expression on the right-hand side is evaluated only if the left-hand side is null .
Read more