通過Array的協(xié)議結(jié)構(gòu)學(xué)習(xí)集合類的協(xié)議。 Arry協(xié)議大致結(jié)構(gòu)圖 1. Swift Comparable, IndexableBase, Indexable 2. Swift IteratorProtocol