Skip to content

Collections.Map

Key/value associative container with explicit semantics.

  • Map<TKey, TValue>.Set(TKey key, TValue value) -> unit
  • Map<TKey, TValue>.TryGet(TKey key) -> Result<TValue, MapError>
  • Map<TKey, TValue>.ContainsKey(TKey key) -> bool
  • Hashing/equality rules must be deterministic.
  • Iteration order guarantees should be documented explicitly.