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 32df5aa commit 4634081Copy full SHA for 4634081
Data/IntMap/Strict.hs
@@ -505,7 +505,7 @@ updateLookupWithKey f0 k0 t0 = k0 `seq` toPair $ go f0 k0 t0
505
506
507
508
--- | /O(log n)/. The expression (@'alter' f k map@) alters the value @x@ at @k@, or absence thereof.
+-- | /O(min(n,W))/. The expression (@'alter' f k map@) alters the value @x@ at @k@, or absence thereof.
509
-- 'alter' can be used to insert, delete, or update a value in an 'IntMap'.
510
-- In short : @'lookup' k ('alter' f k m) = f ('lookup' k m)@.
511
alter :: (Maybe a -> Maybe a) -> Key -> IntMap a -> IntMap a
0 commit comments