File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1126,9 +1126,9 @@ adjust# f k0 m0 = go h0 k0 0 m0
11261126 | otherwise = t
11271127{-# INLINABLE adjust# #-}
11281128
1129- -- | /O(log n)/ The expression (@ 'update' f k map@) updates the value @x@ at @k@
1130- -- (if it is in the map). If (@ f x@) is @ 'Nothing'@ , the element is deleted.
1131- -- If it is (@ 'Just' y@) , the key @k@ is bound to the new value @y@.
1129+ -- | /O(log n)/ The expression @( 'update' f k map)@ updates the value @x@ at @k@
1130+ -- (if it is in the map). If @( f x)@ is 'Nothing', the element is deleted.
1131+ -- If it is @( 'Just' y)@ , the key @k@ is bound to the new value @y@.
11321132update :: (Eq k , Hashable k ) => (a -> Maybe a ) -> k -> HashMap k a -> HashMap k a
11331133update f = alter (>>= f)
11341134{-# INLINABLE update #-}
You can’t perform that action at this time.
0 commit comments