package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-libs.lazy-containers/Tezos_lazy_containers/Lazy_vector/index.html

Module Tezos_lazy_containers.Lazy_vectorSource

A lazy vector is a fixed-size key-value association where each value is created dynamically.

In many ways this data structure mimics an array, but its lookup has logarithmic time complexity and it supports non-int keys.

Sourceexception Bounds
Sourceexception SizeOverflow
Sourcemodule type KeyS = sig ... end

KeyS is the qualifier signature for key types in the lazy vector. Externally visible and accessible keys of the lazy vector are always non-negative. However, the lazy vector implementation may internally use negative keys therefore modules of type KeyS must support them.

Sourcemodule type S = sig ... end
Sourcemodule Make (Key : KeyS) : S with type key = Key.t
Sourcemodule IntVector : S with type key = int
Sourcemodule Int32Vector : S with type key = int32
Sourcemodule Int64Vector : S with type key = int64
Sourcemodule ZVector : S with type key = Z.t
Sourcemodule Mutable : sig ... end

Make generates a lazy vector module using a given Key module.

OCaml

Innovation. Community. Security.