HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Moduleinsert-ordered-containers-0.3.0Haskell2010

Data.HashMap.Strict.InsOrd

InsOrdHashMap is like HashMap, but it folds and traverses in insertion order.

This module interface mimics Data.HashMap.Strict, with some additions.

  • 1 type
  • 49 values
datadata InsOrdHashMap k v
#

HashMap which tries its best to remember insertion order of elements.

Instances34NFData2, ToJSON2, FoldableWithIndex, FunctorWithIndex, TraversableWithIndex, Functor, …

Construction

2 declarations

Basic interface

11 declarations

Combine

4 declarations
valueunionWith
  1. :: (Eq k, Hashable k)
  2. => v -> v -> v
  3. -> InsOrdHashMap k v
  4. -> InsOrdHashMap k v
  5. -> InsOrdHashMap k v
#

The union of two maps. If a key occurs in both maps, the provided function (first argument) will be used to compute the result.

Ordered traversal will go thru keys in the first map first.

Transformations

5 declarations

Unordered

Difference and intersection

4 declarations

Folds

5 declarations

Unordered

Filter

4 declarations

Conversions

7 declarations

Lenses

2 declarations

Debugging

1 declaration