package merlin-lib

  1. Overview
  2. Docs
Merlin's libraries

Install

dune-project
 Dependency

Authors

Maintainers

Sources

merlin-5.9.tbz
sha256=de395dd37d246e3ec303e1af35ff8421665fa4f0f0005d95732124b22e3417ac
sha512=74756b28767cdfe10288720540582e818a9d946dd2406606724ebc7b68d1cf6623142e56a1e457f7862839732e7add365aec056930c7ac89be7036c22e5f29ae

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