- Learn Scala Programming
- Slava Schmidt
- 119字
- 2021-06-10 19:35:42
SeqMap
SeqMap is a generic abstraction for ordered immutable maps. SeqMap itself exists in mutable and immutable forms. These forms have few different implementations:
- The immutable ListMap implements immutable maps using a list-based data structure. The methods traversing ListMap visit its elements in the order they were inserted.
- The mutable ListMap is a simple mutable map backed by a list. It preserves insertion order as its immutable sibling does.
- VectorMap exists only in immutable form. It is implemented using a vector/map-based data structure and preserves insertion order. It has constant lookup but slower other operations.
- LinkedHashMap is a mutable map whose implementation is based on a hashtable and preserves the insertion order if iterated over.
推薦閱讀
- JSP網絡編程(學習筆記)
- Spring Cloud Alibaba核心技術與實戰案例
- LaTeX Cookbook
- Java范例大全
- Testing with JUnit
- LabVIEW2018中文版 虛擬儀器程序設計自學手冊
- Learning AWS Lumberyard Game Development
- Python數據分析(第2版)
- Raspberry Pi 2 Server Essentials
- 從學徒到高手:汽車電路識圖、故障檢測與維修技能全圖解
- Hands-On RESTful Web Services with Go
- Swift細致入門與最佳實踐
- Julia高性能科學計算(第2版)
- Learning Material Design
- Mastering Docker