Back to the Stdlib: Making the Most of Kotlin’s Standard Library
summary
Quick tour of Kotlin stdlib showing concrete techniques and tradeoffs: using the List(size) constructor and joinToString with prefix/postfix/limit/transform instead of manual loops, chunked/windowed for sliding averages, associate/associateBy/groupBy to turn lists into maps without intermediate allocations, set union/intersect as infix ops, and ArrayDeque (pronounced deck) for O(1) addFirst/addLast versus copying ArrayList. Covers scope functions (let/apply/run/also/with) with exact return/receiver differences, buildString/buildList producing immutable results, and delegates lazy (thread‑safe single compute), observable and vetoable (prevent decreasing stock price).
AI-written summary · about
chapters (10)
- 0:00Kotlin Standard Library intro
- 4:44Transforming collections
- 16:02Lists to maps efficiently
- 19:35Sets and operations
- 22:43Discovering ArrayDeque data structure
- 25:10Scope functions explained
- 37:36Builders simplified
- 40:05Delegated properties
- 45:49Advanced stdlib features
- 47:53Q&A








