When block
A typical switch is essentially just a declaration that can substitute a series of if / else statements that are underlying.
Read MoreSealed class
Sealed classes are used for representing restricted class hierarchies, when a value can have one of the types from a limited set, but cannot have any other type.
Read MoreNull safety
Kotlin’s type system is aimed at eliminating the code’s risk of null reference because it is a very common and easily produceable error.
Read More