Skip to content

Commit fcab796

Browse files
committed
Add comments
1 parent 253507a commit fcab796

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Data/HashMap/Internal.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2310,8 +2310,9 @@ updateOrConcatWithKey :: Eq k => (k -> v -> v -> (# v #)) -> A.Array (Leaf k v)
23102310
updateOrConcatWithKey f ary1 ary2 = A.run $ do
23112311
let n1 = A.length ary1
23122312
let n2 = A.length ary2
2313+
-- initialize output array with first element of ary1
23132314
mary <- A.new (n1 + n2) (A.index ary1 0)
2314-
-- copy over all elements from ary1
2315+
-- copy over remaining elements from ary1
23152316
A.copy ary1 1 mary 1 (n1-1)
23162317
-- append or update all elements from ary2
23172318
let go !iEnd !i2 !iMut

0 commit comments

Comments
 (0)