package tezos-lazy-containers

  1. Overview
  2. Docs
type key = Z.t
module Vector = ZVector
type 'a t
val num_elements : 'a t -> key
val of_immutable : 'a Vector.t -> 'a t
val create : ?values:'a Vector.Map.Map.t -> ?produce_value:'a Vector.producer -> ?origin:Lazy_map.tree -> key -> 'a t
val origin : 'a t -> Lazy_map.tree option
val get : key -> 'a t -> 'a Lwt.t
val set : key -> 'a -> 'a t -> unit
val grow : ?default:(unit -> 'a) -> key -> 'a t -> unit
val append : 'a -> 'a t -> key
val cons : 'a -> 'a t -> unit
val snapshot : 'a t -> 'a Vector.t
OCaml

Innovation. Community. Security.