Hoogle Search
Within LTS Haskell 24.62 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
tryLookup :: (Eq k, Hashable k) => TMapMVar k a -> k -> STM (Maybe a)tmapmvar Control.Concurrent.STM.TMapMVar.Hash No documentation available.
phantomLookup :: (Eq k, Hashable k) => k -> Map k v -> STM (Maybe v)ttrie Control.Concurrent.STM.Map O(log n). Return the value associated with the given key, or Nothing. In contrast to lookup, this will never increase the map's memory consumption. However, it might allow phantom reads to occur. Consider the following situation:
f = atomically $ do v1 <- phantomLookup k m v2 <- phantomLookup k m return (v1 == v2)
Under certain circumstances f might actually return False, in particular if the first phantomLookup happens on an empty map and some other transaction inserts a value for k before the second call to phantomLookup.-
IntervalMap Data.IntervalMap Deprecated. As of version 0.3, replaced by insertLookupWithKey. O(log n). A strict version of insertLookupWithKey.
-
IntervalMap Data.IntervalMap.Generic.Lazy O(log n). Combine insert with old values retrieval.
-
IntervalMap Data.IntervalMap.Generic.Lazy O(n). The expression (splitLookup k map) splits a map just like split but also returns lookup k map.
-
IntervalMap Data.IntervalMap.Generic.Lazy O(log n). Lookup and update. See also updateWithKey. The function returns changed value, if it is updated. Returns the original key value if the map entry is deleted.
-
IntervalMap Data.IntervalMap.Generic.Strict O(log n). Combine insert with old values retrieval.
-
IntervalMap Data.IntervalMap.Generic.Strict O(n). The expression (splitLookup k map) splits a map just like split but also returns lookup k map.
-
IntervalMap Data.IntervalMap.Generic.Strict O(log n). Lookup and update. See also updateWithKey. The function returns changed value, if it is updated. Returns the original key value if the map entry is deleted.
-
IntervalMap Data.IntervalMap.Lazy O(log n). Combine insert with old values retrieval.