u/TypeProjectionin r/Kotlin • Recommends
Collection Literals - Been looking forward to this feature!
16K subscribers • 19 videos on Hallway
Intermediate. Assumes working knowledge.
3.9K views4 months ago1 recommendation
Dave Leeds explains the new collection literals feature introduced in Kotlin 2.4 and how it simplifies collection declarations.
Kotlin 2.4 finally introduces Collection Literals, so that we can declare our collections with brackets instead of manually calling functions. And when we put them together with the new name-based destructuring feature, we end up with a particularly cool effect. ✨ New to Kotlin? Start your journey here: typealias.com/start/ 🚀 Newsletter: newsletter.typealias.com/ 🎞️ Coroutines Course: courses.typealias.com/coroutines Use code HOTFLOW between now and June 30, 2026 for an extra special discount. (Remove any existing discount code first in order to use this one!) 📝 Read more about Collection Literals in the KEEP here: github.com/Kotlin/KEEP/blob/main/proposals/KEEP-0416-collect… 📚 Chapters Start Using Collection Literals Collection Types and Collection Literals Making Collection Types Compatible Collection Literals and Name-Based Destructuring Wrap-UpWhat people say. Recommended as an exciting look at the upcoming collection literals feature in Kotlin.
u/TypeProjectionin r/Kotlin • Recommends