Kotlin: Generics

Generic classes and functions, type bounds, variance (in/out), type projections, type erasure, and inline and reified functions — for everyone who has already completed "Kotlin Introduction" and "Kotlin OOP".

0 / 8 completed

Module 1 · Basics of Generic Types
011. Generic Functions and ClassesLESSON
—2. Type BoundsLOCKED
Module 2 · Type Safety and Variance
—3. Invariance of GenericsLOCKED
—4. Declaration-Site Variance: out and inLOCKED
—5. Type Projections and Star ProjectionLOCKED
Module 3 · Generics at Runtime
—6. Type ErasureLOCKED
—7. Inline FunctionsLOCKED
—8. Reified Type ParametersLOCKED
8 lessonsModule 1 · Basics of Generic TypesModule 2 · Type Safety and VarianceModule 3 · Generics at RuntimeProgress: local, no account required