A collection of Kotlin codes, features, and examples
Table of contents:
- Class and Function
- String Templates
- Conditional
- Null Safety
- When
- Exception
- Looping
- Function Expression
- Default Parameters
- Named Parameters
- Extension Functions
- Infix Functions
- Tail Recursive Functions
- Interfaces
- Classes
- Sealed Classes
- Constructors
- Data Classes
- Object
- Extending Objects
- Companion Objects
- Anonymous Classes
- Higher Order Functions
- With and Apply