Persistent data structures in Scala

后端 未结 4 1031
死守一世寂寞
死守一世寂寞 2020-12-07 17:06

Are all immutable data structures in Scala persistent? If not, which of them are and which not? What are the behavioural characteristics of those which are persistent? Also,

4条回答
  •  执笔经年
    2020-12-07 17:32

    List, Vector, HashMap and HashSet are all persistent on Scala 2.8. There are other persistent data structures, but these covering all the major uses, I'm not sure there's any point in enumerating all of them.

提交回复
热议问题