package trace

  1. Overview
  2. Docs
A stub for tracing/observability, agnostic in how data is collected

Install

Dune Dependency

Authors

Maintainers

Sources

trace-0.6.tbz
sha256=97cc4159b96429adc01a84bff1ed34b8f06746bc56a40a214a6306036be2df38
sha512=6a67ea9ddeebb4b93a0b8dba9ed26d95e786722d08fd9ca7d8e2db7651a9b9d6ccc63cc437b4eb71c28b3ec51838716a84707a8d366abb595f32a5e65035e28b

doc/trace.core/Trace_core/Meta_map/index.html

Module Trace_core.Meta_mapSource

Associative containers with Heterogeneous Values

Sourcemodule Key : sig ... end

Keys with a type witness.

Sourcetype pair =
  1. | Pair : 'a Key.t * 'a -> pair
Sourcetype t

Immutable map from Key.t to values

Sourceval empty : t
Sourceval mem : _ Key.t -> t -> bool
Sourceval add : 'a Key.t -> 'a -> t -> t
Sourceval remove : _ Key.t -> t -> t
Sourceval length : t -> int
Sourceval cardinal : t -> int
Sourceval find : 'a Key.t -> t -> 'a option
Sourceval find_exn : 'a Key.t -> t -> 'a
  • raises Not_found

    if the key is not in the table.

Sourceval iter : (pair -> unit) -> t -> unit
Sourceval add_list : t -> pair list -> t
Sourceval of_list : pair list -> t
Sourceval to_list : t -> pair list
OCaml

Innovation. Community. Security.