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.
Shift
1 parent 0d0697e commit 868aee0Copy full SHA for 868aee0
Data/HashMap/Internal.hs
@@ -708,11 +708,11 @@ lookupCont ::
708
-> (v -> Int -> r) -- Present continuation
709
-> Hash -- The hash of the key
710
-> k
711
- -> Int -- The offset of the subkey in the hash.
+ -> Shift -- The offset of the subkey in the hash.
712
-> HashMap k v -> r
713
lookupCont absent present !h0 !k0 !s0 !m0 = go h0 k0 s0 m0
714
where
715
- go :: Eq k => Hash -> k -> Int -> HashMap k v -> r
+ go :: Eq k => Hash -> k -> Shift -> HashMap k v -> r
716
go !_ !_ !_ Empty = absent (# #)
717
go h k _ (Leaf hx (L kx x))
718
| h == hx && k == kx = present x (-1)
0 commit comments