( bucket: NonEmptyArray<K>, key: K )
| 471 | }) |
| 472 | |
| 473 | const getRefKey = <K>( |
| 474 | bucket: NonEmptyArray<K>, |
| 475 | key: K |
| 476 | ) => { |
| 477 | for (let i = 0, len = bucket.length; i < len; i++) { |
| 478 | if (Equal.equals(key, bucket[i])) { |
| 479 | referentialKeysCache.set(key, bucket[i]) |
| 480 | return bucket[i] |
| 481 | } |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * Updates the value of the specified key within the MutableHashMap if it exists. |
no test coverage detected