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

  • Dictionary becomes Map.

  • Dictionary becomes Map.

  • IDictionary becomes Map.

  • HashMap becomes Map.

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.