News

Try rewriting Listing 4 as a traditional C/Java switch statement, and you will get an idea of how much better off we are with Kotlin’s when statement. Also, similar to if, when can be used as an ...
Learn how to use statements like if, if-else, switch, for, and while to declare variables and specify expressions, make decisions, iterate over statements, and more.