Part 5: Functional & Advanced
Embrace Kotlin’s functional style and its more advanced language features.
What You’ll Learn
- Lambdas, higher-order functions, function references, and
inline - Scope functions:
let,run,with,apply,also - Class delegation and delegated properties
- Operator overloading and conventions
- Building type-safe DSLs
- Exceptions, annotations, and reflection basics
Chapters
| Chapter | Description |
|---|---|
| Lambdas & Higher-Order Functions | Function types, lambdas, references, closures |
| Scope Functions | let/run/with/apply/also |
| Delegation | Class delegation by, delegated properties |
| Operator Overloading | Operator overloading, destructuring |
| Type-Safe Builders (DSLs) | Type-safe builders, @DslMarker |
| Exceptions & Reflection | runCatching, annotations, reflection |