We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3315dba commit fc018dfCopy full SHA for fc018df
Data/HashMap/Internal.hs
@@ -2318,7 +2318,7 @@ updateOrConcatWithKey f ary1 ary2 = A.run $ do
2318
| i2 >= n2 = return iEnd
2319
| otherwise = do
2320
l@(L k v2) <- A.indexM ary2 i2
2321
- res <- searchSwap k iMut n2 mary
+ res <- searchSwap k iMut n1 mary
2322
case res of
2323
Just (L _ v1) -> do -- key occurs in both arrays, store combination in position iMut
2324
case f k v1 v2 of (# v3 #) -> A.write mary iMut (L k v3)
0 commit comments