Why no immutable arrays in scala standard library?

前端 未结 7 1565
死守一世寂寞
死守一世寂寞 2020-12-23 21:27

Scala has all sorts sorts of immutable sequences like List, Vector,etc. I have been surprised to find no implementation of immutable indexed sequence backed by a simple arra

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 22:01

    Scala 2.13 has added ArraySeq, which is an immutable sequence backed by an array.

提交回复
热议问题