Posts by EduardoMPinto • 1 point
1 post
-
0
votes3
answers8606
viewsA: Switch case Kotlin
You can also be worth maps to do this. This approach is very common in switch-less languages like python. val months = mapOf<Int, String>( 1 to "January", 2 to "February" 3 to "March", 4 to…