zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Kotlin 开发者社区: Kotlin collections (集合类)

Kotlin集合开发者 社区 collections
2023-09-14 09:07:22 时间

 

Nicolas Fränkel is a Developer Advocate with 15+ years experience consulting for many different customers, in a wide range of contexts (such as telecoms, banking, insurances, large retail and public sector). Usually working on Java/Java EE and Spring technologies, but with focused interests like Rich Internet Applications, Testing, CI/CD and DevOps. Currently working for Exoscale. Also double as a teacher in universities and higher education schools, a trainer and triples as a book author.

Unfortunately, I must admit I have a hard time reading the documentation of Scala collections e.g.:

不幸的是,我必须承认我很难阅读Scala集合的文档,例如

trait LinearSeq [+A] extends Seq[A] with collection.LinearSeq[A] with GenericTraversableTemplate[A, LinearSeq] with LinearSeqLike[A, LinearSeq[A]]

Hence, I will only describe collections from the Kotlin side.

Iterator

At the root of Kotlin’s Collection