package trace
A stub for tracing/observability, agnostic in how data is collected
Install
Dune Dependency
Authors
Maintainers
Sources
trace-0.9.1.tbz
sha256=9739d5f46becb407e96943f4f0d6d0919e03c14299ab9c2ddbb8d46b6f7a3ea4
sha512=500230dedc834cbb8535a1624408c2f0e67683bacef5e4a55b7639c4013f6247d3aa4cbc56b61810d0138f736c1245b6b334bd3991c2e86d03faee47b729c547
doc/trace.core/Trace_core/Meta_map/index.html
Module Trace_core.Meta_map
Source
include module type of struct include Hmap end
Keys
type 'a key = 'a Hmap.key
The type for keys whose lookup value is of type 'a
.
module Key = Hmap.Key
Keys.
Maps
type t = Hmap.t
The type for heterogeneous value maps.
val empty : t
empty
is the empty map.
val is_empty : t -> bool
is_empty m
is true
iff m
is empty.
The type for bindings.
fold f m acc
folds over the bindings of m
with f
, starting with acc
exists p m
is true
iff there exists a bindings of m
that satisfies p
.
val cardinal : t -> int
cardinal m
is the number of bindings in m
.
Functorial interface
The functorial interface allows to associate more information to the keys. For example a key name or a key value pretty-printer.
module type KEY_INFO = Hmap.KEY_INFO
The type for key information.
module Make = Hmap.Make
Functor for heterogeneous maps whose keys hold information of type Key_info.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>