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.

  1. splitLookup :: (Interval i k, Ord i) => i -> IntervalMap i a -> (IntervalMap i a, Maybe a, IntervalMap i a)

    IntervalMap Data.IntervalMap.Lazy

    O(n). The expression (splitLookup k map) splits a map just like split but also returns lookup k map.

  2. updateLookupWithKey :: (Interval k e, Ord k) => (k -> a -> Maybe a) -> k -> IntervalMap k a -> (Maybe a, IntervalMap k a)

    IntervalMap Data.IntervalMap.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.

  3. insertLookupWithKey :: (Interval k e, Ord k) => (k -> v -> v -> v) -> k -> v -> IntervalMap k v -> (Maybe v, IntervalMap k v)

    IntervalMap Data.IntervalMap.Strict

    O(log n). Combine insert with old values retrieval.

  4. splitLookup :: (Interval i k, Ord i) => i -> IntervalMap i a -> (IntervalMap i a, Maybe a, IntervalMap i a)

    IntervalMap Data.IntervalMap.Strict

    O(n). The expression (splitLookup k map) splits a map just like split but also returns lookup k map.

  5. updateLookupWithKey :: (Interval k e, Ord k) => (k -> a -> Maybe a) -> k -> IntervalMap k a -> (Maybe a, IntervalMap k a)

    IntervalMap Data.IntervalMap.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.

  6. unsafeLookupBit :: BitArray -> Int -> Bool

    bitarray Data.BitArray

    No documentation available.

  7. insertLookupWithKey :: IsMap map => (ContainerKey map -> MapValue map -> MapValue map -> MapValue map) -> ContainerKey map -> MapValue map -> map -> (Maybe (MapValue map), map)

    classy-prelude-yesod ClassyPrelude.Yesod

    Insert a key-value pair into a map, return the previous key's value if it existed. Inserts the value directly if the key does not exist in the map. Otherwise, apply a supplied function that accepts the key, the new value, and the previous value and insert that result into the map.

  8. updateLookupWithKey :: IsMap map => (ContainerKey map -> MapValue map -> Maybe (MapValue map)) -> ContainerKey map -> map -> (Maybe (MapValue map), map)

    classy-prelude-yesod ClassyPrelude.Yesod

    Apply a function to the value of a given key. If the map does not contain the key this returns Nothing and the input map. If the map does contain the key but the function returns Nothing, this returns the previous value and the map with the key-value pair removed. If the map contains the key and the function returns a value, this returns the new value and the map with the key-value pair with the new value.

  9. class OverloadedLookup t k v | t -> k, t -> v

    error-or-utils Data.ErrorOr.Utils

    A class used to implement lookup and lookupIn.

  10. overloadedLookup :: OverloadedLookup t k v => k -> t -> Maybe v

    error-or-utils Data.ErrorOr.Utils

    No documentation available.

Page 233 of many | Previous | Next