English
Topic 11. Lambda expressions, higher-order functions, collection operations, and sequences
Goal: learn to pass behavior as functions, build testable data pipelines, work with closures, and determine the limits of lazy evaluation.
Lecture contents
- Function types and lambdas — Function types · Lambda syntax · Example 1. A calculator with a map of operations
- Closures and inline functions — Closures and the lifetime of state · Inline and return control
- Scope functions — Lambdas with a receiver and scope functions
- Collection operations — Transformation and filtering · Grouping, indexes, and folding
- Sequences and SAM interfaces — Sequences and lazy processing · Functional interfaces and Java SAM