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.
splitLookup :: Int -> IntMap s a -> Some2IntMapWith (SplitProof 'Int s (Key s, a)) a arefined-containers Data.IntMap.Refined Return two disjoint submaps: those whose keys are less than the given key, and those whose keys are greater than the given key. If the key was in the map, also return the associated value and the proof that it was in the map.
-
refined-containers Data.IntMap.Refined If the given key is in the map, update or delete it using the given function with a proof that the key was in the map; otherwise the map is unchanged. Alongside return the new value if it was updated, or the old value if it was deleted, and a proof that the key was in the map.
-
refined-containers Data.IntMap.Strict.Refined Insert a key-value pair into the map using a combining function, and if the key was already present, the old value is returned along with the proof that the key was present.
splitLookup :: Int -> IntMap s a -> Some2IntMapWith (SplitProof 'Int s (Key s, a)) a arefined-containers Data.IntMap.Strict.Refined Return two disjoint submaps: those whose keys are less than the given key, and those whose keys are greater than the given key. If the key was in the map, also return the associated value and the proof that it was in the map.
-
refined-containers Data.IntMap.Strict.Refined If the given key is in the map, update or delete it using the given function with a proof that the key was in the map; otherwise the map is unchanged. Alongside return the new value if it was updated, or the old value if it was deleted, and a proof that the key was in the map.
-
refined-containers Data.Map.Refined Insert a key-value pair into the map using a combining function, and if the key was already present, the old value is returned along with the proof that the key was present.
-
refined-containers Data.Map.Refined Return two disjoint submaps: those whose keys are less than the given key, and those whose keys are greater than the given key. If the key was in the map, also return the associated value and the proof that it was in the map.
-
refined-containers Data.Map.Refined If the given key is in the map, update or delete it using the given function with a proof that the key was in the map; otherwise the map is unchanged. Alongside return the new value if it was updated, or the old value if it was deleted, and a proof that the key was in the map.
-
refined-containers Data.Map.Strict.Refined Insert a key-value pair into the map using a combining function, and if the key was already present, the old value is returned along with the proof that the key was present.
-
refined-containers Data.Map.Strict.Refined Return two disjoint submaps: those whose keys are less than the given key, and those whose keys are greater than the given key. If the key was in the map, also return the associated value and the proof that it was in the map.