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.
alterF
1 parent 1a643e6 commit 65af25cCopy full SHA for 65af25c
Data/HashMap/Internal.hs
@@ -1347,6 +1347,11 @@ alter' f !h0 !k0 = go_alter' h0 k0 0
1347
Just v' -> runST $ two s h k v' hy t
1348
{-# INLINE alter' #-}
1349
1350
+-- | \(O(\log n)\) The expression @('alterF' f k map)@ alters the value @x@ at
1351
+-- @k@, or absence thereof.
1352
+--
1353
+-- 'alterF' can be used to insert, delete, or update a value in a map.
1354
1355
-- Note: 'alterF' is a flipped version of the 'at' combinator from
1356
-- <https://hackage.haskell.org/package/lens/docs/Control-Lens-At.html#v:at Control.Lens.At>.
1357
--
0 commit comments