Method
Entry
func Entry<K, V>(key: K) -> MapEntry<K, V>
Declaring type: MutableMapExtensions
Module: System.Collections
Assembly: System.Runtime.dll
Extension from MutableMapExtensions.Entry
Creates a reusable live locator without looking up or inserting the key.
Parameters
| Name | Type | Description |
|---|---|---|
self |
MutableMap<K, V> | The mutable map retained by the locator. |
key |
K | The key to resolve on each operation. |
Return value
MapEntry<K, V>
A managed MapEntry retaining the map and key.
Remarks
No storage references, lock, reservation or atomic transaction. The locator remains usable after growth and replacement.