SplitScript reference / Migration / Key-value collections
Key-value collections
Migration from C#, Rust
Source pattern
-
C#:
Dictionary -
C#:
Dictionary -
C#:
IDictionary -
Rust:
HashMap
Canonical SplitScript
-
DictionarybecomesMap. -
DictionarybecomesMap. -
IDictionarybecomesMap. -
HashMapbecomesMap.
Use the canonical language and API symbols linked below.
Semantic difference
Use Map<K, V> for growable key-value collections. Indexing returns a MapEntry<K, V> so an absent key remains distinguishable even when V is optional; use Map.containsKey when only membership matters.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
Map.new (standard library)