package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

merlin-5.8.1-505.tbz
sha256=b8fb32bc0fc092af2fd6bdc831cb966057f2e3fd7b99a172b705e96ba8082583
sha512=01ca96f8167d062ba24036e43f650ff958fb157d44867bd52eb7999b7d19bf9fc97cdcd46c04b6979f0e1149d5041047723eed5913b03c4404d7acb116183bee

doc/merlin-lib.index_format/Merlin_index_format/Dbllist/index.html

Module Merlin_index_format.DbllistSource

Sourcetype 'a cell = {
  1. content : 'a;
  2. weight : int;
  3. mutable prev : 'a cell;
  4. mutable next : 'a cell;
}
Sourcetype stats = {
  1. mutable total_cap : int;
  2. mutable promote_count : int;
  3. mutable add_count : int;
  4. mutable discard_count : int;
  5. mutable add_size : int;
  6. mutable discarded_size : int;
}
Sourcetype 'a dbll =
  1. | Nil of int
  2. | List of {
    1. first : 'a cell;
    2. last : 'a cell;
    3. size : int;
    4. cap : int;
    }
Sourcetype 'a t = {
  1. mutable dbll : 'a dbll;
  2. stats : stats;
}
Sourceexception Action_on_empty_list of string
Sourceval pp_stats : 'a t -> unit
Sourceval create : int -> 'a t
Sourceval add_front : 'a t -> ('a * int) -> 'a cell
Sourceval discard_size : 'a t -> int -> 'a list
Sourceval promote : 'a t -> 'a cell -> unit
Sourceval get : 'a cell -> 'a