package KaSim

  1. Overview
  2. Docs
type !'a t = private {
  1. decls : (string * 'a) array;
  2. finder : int Mods.StringMap.t;
}
val create : ?forbidden:Mods.StringSet.t -> (string Locality.annot * 'a) array -> 'a t
val size : 'a t -> int
val elt_name : 'a t -> int -> string
val elt_id : ?kind:string -> 'a t -> string Locality.annot -> int
val fold : (int -> string -> 'a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val mapi : (int -> string -> 'a -> 'b) -> 'a t -> 'b t
val print : sep:(Format.formatter -> unit) -> (int -> string -> Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
val debug_print : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
val to_json : ('a -> Yojson.Basic.json) -> 'a t -> Yojson.Basic.json
val of_json : (Yojson.Basic.json -> 'a) -> Yojson.Basic.json -> 'a t
OCaml

Innovation. Community. Security.