- 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.
推薦閱讀
- 在最好的年紀學Python:小學生趣味編程
- Redis Applied Design Patterns
- Dependency Injection in .NET Core 2.0
- Hands-On RESTful Web Services with Go
- 可解釋機器學習:模型、方法與實踐
- Python數據結構與算法(視頻教學版)
- 從零開始學Linux編程
- Bootstrap 4 Cookbook
- HTML5秘籍(第2版)
- 硬件產品設計與開發:從原型到交付
- Learning Unreal Engine Game Development
- UML基礎與Rose建模實用教程(第三版)
- React and React Native
- 前端架構設計
- Unity 5 Game Optimization