摘要: 参考:https://www.jianshu.com/p/69bff3c7ec97 Scala的集合类可以从三个维度进行切分: 可变与不可变集合(Immutable and mutable collections) 静态与延迟加载集合 (Eager and delayed evaluation ) 阅读全文
posted @ 2020-04-22 16:00 糖醋排骨加辣椒 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.runoob.com/scala/scala-lists.html https://www.jianshu.com/p/24c0ed2e3ae8 1. 默认scala的List是可不变的,值一旦被定义了就不能改变了,所以列表改变后都需要重新赋值。 2. ListBuff 阅读全文
posted @ 2020-04-22 15:36 糖醋排骨加辣椒 阅读(345) 评论(0) 推荐(0) 编辑