Part 4: Collections & Generics

Work with Kotlin’s collections and write reusable, type-safe code.

What You’ll Learn

  • Arrays and the core collections: List, Set, Map
  • Read-only vs mutable collections
  • Collection operations: map, filter, fold, groupBy
  • Sequences and lazy evaluation
  • Generics, constraints, variance (in/out), and reified

Chapters

Chapter Description
Collections Arrays, lists, sets, maps; read-only vs mutable
Collection Operations Transform, filter, aggregate, group
Sequences Lazy vs eager evaluation
Generics Generic functions/classes, constraints
Variance & Reified Types in/out, star projection, reified

Table of contents


Back to top

Kotlin & Android Programming Guide is not affiliated with JetBrains or Google. Content is provided for educational purposes.

This site uses Just the Docs, a documentation theme for Jekyll.