SwiftのArrayがミュータブルでもCovariantな理由 - Qiita

SwiftのArrayでは次のようなことができます。class Animal {}class Cat: Animal {}var cats: Array<Cat> = [Cat(), Cat(…