( self: MutableHashMap<K, V>, bucket: NonEmptyArray<K>, key: K )
| 348 | export const values = <K, V>(self: MutableHashMap<K, V>): Iterable<V> => self.backing.values() |
| 349 | |
| 350 | const getFromBucket = <K, V>( |
| 351 | self: MutableHashMap<K, V>, |
| 352 | bucket: NonEmptyArray<K>, |
| 353 | key: K |
| 354 | ): Option.Option<V> => { |
| 355 | for (let i = 0, len = bucket.length; i < len; i++) { |
| 356 | if (Equal.equals(key, bucket[i])) { |
| 357 | const refKey = bucket[i] |
| 358 | referentialKeysCache.set(key, refKey) |
| 359 | return Option.some(self.backing.get(refKey)!) |
| 360 | } |
| 361 | } |
| 362 | return Option.none() |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Checks whether the MutableHashMap contains the specified key. |
no test coverage detected