Kotlin - Control Flow as Expressions
What will be printed by this Kotlin code?
fun printInfo(value: Any) {
when (value) {
is Double -> println(value * 2)
is String -> println(value.reversed())
else -> println("Unsupported")
}
}
printInfo("Kotlin")