| Quick Reference Kotlin CheatsheetKotlin on one page — null safety, collections, data classes, when, extensions, coroutines, and the traps around !!, val, and equals. 10 sections 10 tables 14 code snippets Run a fileA script A value and a variable The names
This page is the Kotlin language. The samples run as a script or in IntelliJ. Null safetyCheck, then use A stand-in Null rules
CollectionsA read-only list A map Collection rules
FunctionsA default argument Call rules
Data classesConstructor properties Which members you get
WhenA value from the pages Branch rules
Require and throwReject a bad value Failure rules
Extension functionsA function on String How dispatch works
CoroutinesA suspending function Concurrency rules
Interview trapsTraps worth memorising
This throws on null This throws on the index How to use this page: run |