Unit 03 of 03
Collections and Concurrency Basics
Read-only and mutable collections, transformation operations with mapping, filtering and reduction, sequences, coroutines, flows, and the unchecked exception model.
Published Updated
Lessons
- 01 Collection Types Measures that a read-only interface does not mean immutability, that a list's equality comes from its content, and that sets and maps compare equal regardless of order. 15 min read
- 02 Transformation Operations Measures that mapping, filtering, folding and grouping produce new collections, that applying the same transformation twice gives equal but separate results, and that distinct and toSet rest on the element's own equality. 14 min read
- 03 Sequences Measures that a sequence holds its intermediate operations until a terminal operation arrives and processes elements piece by piece, that it can be finished from an infinite source, and that two sequences are not counted as equal. 14 min read
- 04 Coroutines Measures that a coroutine yields its turn at the point where it is suspended, that the result is taken with await, and that two separately started jobs are not counted as equal. 14 min read
- 05 Flows Measures that a cold flow reruns on every collecting, that consecutive equal values are dropped by content, and that two flows are not counted as equal. 14 min read
- 06 Exception Handling Measures the unchecked exception model, the try expression, Result and propagation in a coroutine, shows that two exceptions with the same message are not counted as equal, and closes the course. 10 min read