Elements of Kotlin
- Preface
- Introducing Kotlin
- A Few “Hello, World!” Examples
- Basic Types and Expressions
- Variables… Whether They Vary or Not
- Functions
- Collections and Lambdas
- If, When, and While
- Basic Classes
- Comments and Documentation
- Properties
- Visibility and Scope
- Abstract Classes and Interfaces
- Data Class
- The object Keyword
- Nested Objects and Classes
- Enums and Sealed Classes
- Generics
- Exceptions
- Annotations
- Nullability
- Scope Functions
- Functional Programming
- Extension Functions
- Java Interoperability
- Changes in Newer Kotlin Versions
- Custom Accessors
- Extension Properties
- Escaping Keywords
- Escaped Method Names
- Property Delegates
- Class Delegation
- Constants
- Abstract Properties
- Covariance in Generics
- Contravariance in Generics
- Anonymous Functions
- Local Functions
- Local Types
- Inline Functions
- Inline Classes
- Reified Type Parameters
- noinline and crossinline
- Receivers in Function Types
- Renamed Imports
- Operator Overloading
- Infix Functions
- Destructuring Declarations
- Labeled Returns
- Nothing
- Types of Keywords
This book is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.