Which programming language is this?
val scores = mapOf("ana" to 90, "bo" to 72)
for ((name, score) in scores) {
if (score in 80..100) println("$name passed")
}
Answer: Kotlin
Unlike Swift, it builds pairs with the
Play Programming Languages ▸
to infix, uses a 80..100 range and $name string templates, which are Kotlin.