103

The Ins and Outs of Generic Variance in Kotlin

 4 years ago
source link: https://typealias.com/guides/ins-and-outs-of-generic-variance/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The ultimate guide to understanding generics, covariance, contravariance, and type projections in Kotlin. Learn two simple subtyping rules that explain why generic variance works the way that it does.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK