Indexer
Item
var self[key: K]: V
Declaring type: HashMap<K, V>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: HashMap.rvn
Implements MutableMap<K, V>.Item, Map<K, V>.Item
Gets an existing value, or inserts/replaces the value associated with a key.
Parameters
| Name | Type | Description |
|---|---|---|
key |
K | The key to look up or update using this map's comparer. |
Property value
V
Remarks
The getter causes a terminal Fault for a missing key. Prefer Find when absence is expected. The setter preserves an existing key and delegates to Set; comparer, reentry and capacity faults remain possible.