News From the Kotlin Standard Library
summary
Kotlin 1.4 adds concrete APIs and migration steps: runningReduce and runningFold return all intermediate results, ArrayDeque provides a fast double‑ended queue usable in common multiplatform code, and collection builders like buildList produce frozen read‑only collections. max/min variants deprecate in favor of maxOrNull/minOrNull, randomOrNull returns null for empty collections, standard library dependency is injected by default for multiplatform, OptIn replaces UseExperimental for opting into experimental APIs, and TimeSource/measureTime yields Duration/TimedValue.
AI-written summary · about
chapters (13)
- 0:00Introduction to Kotlin 1.4
- 0:39Standard library conventions
- 2:30Min and max improvements
- 5:35Indexed operations
- 6:43Reduce and indexed operations
- 7:26New functional operators
- 10:16ArrayDeque data structure
- 11:37Bit manipulation functions
- 12:47Multiplatform library support
- 15:41Experimental API handling
- 18:39Collection builders
- 20:03Time measurement API
- 21:49Summary and resources








