Dmitry Jemerov

This quote додав(ла) kalmyk
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.

Тренуйтеся на цитаті


Оцініть цитату:
2.5 out of 5 based on 6 ratings.

Редагувати текст

Редагувати автора та назву

(Changes are manually reviewed)

або просто залиште коментар:


Перевірте свої навички, пройдіть Тестування набору тексту.

Score (Слів за хвилину) розподіл для цієї цитати. Докладніше.

Найкращі результати для цієї typing test

Ім'я Слів за хвилину Точність
taehyungkwon 100.52 95.1%
giannepaula07 93.90 95.3%
klgrass84 92.99 95.8%
ipanja 91.04 88.3%
user93811 85.26 96.2%
magesh 82.17 93.6%
user828068 78.21 90.3%
freakbuoyancy 77.65 95.7%
richardma 76.34 94.2%
psbank 76.01 95.5%

Останні для

Ім'я Слів за хвилину Точність
omolon 51.58 96.0%
magesh 82.17 93.6%
user567636 41.99 96.4%
user828068 78.21 90.3%
browar08 68.56 90.4%
matysek 61.09 97.0%
user93811 85.26 96.2%
morkel 45.25 89.6%