Dmitry Jemerov

This quote ble lagt til av 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.

Tren på dette sitatet


Vurder dette sitatet:
2.5 out of 5 based on 6 ratings.

Rediger tekst

Rediger forfatter og tittel

(Changes are manually reviewed)

eller bare legg igjen en kommentar:


Test ferdighetene dine, ta Skrivetest.

Score (WPM) fordelingen for dette sitatet. Mer.

Beste resultater for dette typing test

Navn WPM Nøyaktighet
ellxi39 103.44 96.6%
taehyungkwon 100.52 95.1%
giannepaula07 93.90 95.3%
dante-didit 93.51 96.4%
klgrass84 92.99 95.8%
ipanja 91.04 88.3%
user93811 85.26 96.2%
magesh 82.17 93.6%
gwaldrop 78.52 88.8%
user828068 78.21 90.3%

Nylig for

Navn WPM Nøyaktighet
user110607 47.66 91.9%
plexton 73.03 94.9%
dante-didit 93.51 96.4%
gwaldrop 78.52 88.8%
ellxi39 103.44 96.6%
user843630 72.38 93.7%
shinji9 44.75 92.0%
omolon 51.58 96.0%