-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
Description
unordered-containers/Data/HashMap/Internal.hs
Lines 1862 to 1865 in 4da2c20
| case len of | |
| 0 -> pure Empty | |
| 1 -> A.read mary 0 | |
| _ -> bitmapIndexedOrFull bFinal <$> (A.unsafeFreeze =<< A.shrink mary len) |
I'm referring to line 1864 where, instead of returning a BitmapIndexed node, its only element is returned.
@oberblastmeister Could you clarify the reasoning behind this code?
I'm wondering whether this might mess with the shift/subkey-logic, effectively misplacing some elements, so they can't be found by lookups, deletions etc.