https://kotlinlang.org logo
#announcements
Title
# announcements
b

bernhard

02/05/2017, 9:41 PM
Is it somehow possible to have an completely empty when-else block? atm I have to add atleast curly braces, is there a way to omit them?
Copy code
when(i) {
   is 1 -> println("its 1")
   else -> {
   }
}