Останні коментарі

Himarsha Gokhale
There are literally other sites for that. This is not that kind of site.

the person who typed this
The problem with short quotes is that they are not an accurate representation of your …

xkouki
"qwerty" is, ironically, rather difficult to type in Dvorak...

Dr. Elisabeth Kubler-Ross
Jeg får feil ved "k" i ", ​​kjent tap" selv om jeg skriver rett!

Bebe Kuhlet
I don't think it matters if you are homeless or not. I think the reality …

Докладніше

kalmyk's цитат

Усі цитат

Dmitry Jemerov
Do you remember how children memorize the colors of the rainbow? "Richard Of York Gave Battle In Vain!" Imagine you need a function that gives you a mnemonic for each color (and you don't want to store this information in the enum itself). In Java you can use a switch statement for this. The corresponding Kotlin construct will be when. Like if, when is an expression that returns a value, so you can write a function with an expression body, returning the when expression directly.