We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc790ab commit 253507aCopy full SHA for 253507a
Data/HashMap/Internal.hs
@@ -2310,7 +2310,7 @@ updateOrConcatWithKey :: Eq k => (k -> v -> v -> (# v #)) -> A.Array (Leaf k v)
2310
updateOrConcatWithKey f ary1 ary2 = A.run $ do
2311
let n1 = A.length ary1
2312
let n2 = A.length ary2
2313
- mary <- A.new (n1 + n2) (A.index ary1 1)
+ mary <- A.new (n1 + n2) (A.index ary1 0)
2314
-- copy over all elements from ary1
2315
A.copy ary1 1 mary 1 (n1-1)
2316
-- append or update all elements from ary2
0 commit comments