package coq
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=73466e61f229b23b4daffdd964be72bd7a110963b9d84bd4a86bb05c5dc19ef3
doc/coq-core.kernel/Univ/LMap/index.html
Module Univ.LMapSource
include CMap.ExtS
with type key = Level.t
and type 'a t = 'a Level.Map.t
and module Set := Level.Set
The underlying Map library
include CSig.MapS with type key = Level.t with type 'a t = 'a Level.Map.t
type key = Level.ttype 'a t = 'a Level.Map.tval empty : 'a tval is_empty : 'a t -> boolval cardinal : 'a t -> intApply the given function to the binding of the given key.
val domain : 'a t -> Level.Set.tRecover the set of keys defined in the map.
val bind : (key -> 'a) -> Level.Set.t -> 'a tbind 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.
val height : 'a t -> intAn indication of the logarithmic size of a map
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.
update x f m returns a map containing the same bindings as m, except for the binding of x. Depending on the value of y where y is f (find_opt x m), the binding of x is added, removed or updated. If y is None, the binding is removed if it exists; otherwise, if y is Some z then x is associated to z in the resulting map. If x was already bound in m to a value that is physically equal to z, m is returned unchanged (the result of the function is then physically equal to m).
module Smart : sig ... endmodule Unsafe : sig ... endmodule Monad (M : CMap.MonadS) : sig ... endFold operators parameterized by any monad.