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