Description
🚀 Feature Proposal
Add a new builtin dictionary type OrderedDictionary<K, V>
that can be used instead of Dictionary<K, V>
when the order of items is important.
Motivation
Some dictionaries require a fixed order (e.g. aggregations
), but currently we do not model this fact at all.
This is quite special since the JSON spec does not make any guarantees about the order of properties in an object, but still Elasticsearch relies on that.