package coq
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=36577b55f4a4b1c64682c387de7abea932d0fd42fc0cd5406927dca344f53587
doc/coq-core.clib/HMap/Make/index.html
Module HMap.Make
Source
Hash maps are maps that take advantage of having a hash on keys. This is essentially a hash table, except that it uses purely functional maps instead of arrays.
CAVEAT: order-related functions like fold
or iter
do not respect the provided order anymore! It's your duty to do something sensible to prevent this if you need it. In particular, min_binding
and max_binding
are now made meaningless.
Parameters
module M : HashedType
Signature
Same as add
, but expects the key to be present, and thus faster.
Apply the given function to the binding of the given key.
bind f s
transform the set x1; ...; xn
into x1 := f x1; ...; xn := f xn
.
Alias for fold
, to easily track where we depend on fold order.
find_range in_range m
Given a comparison function in_range x
, that tests if x
is below, above, or inside a given range filter_range
returns the submap of m
whose keys are in range. Note that in_range
has to define a continouous range.
Fold operators parameterized by any monad.