package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 4.14.2

Install

Dune Dependency

Authors

Maintainers

Sources

4.14.2.tar.gz
sha256=c2d706432f93ba85bd3383fa451d74543c32a4e84a1afaf3e8ace18f7f097b43

doc/stdlib/Stdlib/Obj/Ephemeron/index.html

Module Obj.EphemeronSource

Ephemeron with arbitrary arity and untyped

Sourcetype obj_t = t

alias for Obj.t

Sourcetype t

an ephemeron cf Ephemeron

Sourceval create : int -> t

create n returns an ephemeron with n keys. All the keys and the data are initially empty. The argument n must be between zero and max_ephe_length (limits included).

Sourceval length : t -> int

return the number of keys

Sourceval get_key : t -> int -> obj_t option
Sourceval get_key_copy : t -> int -> obj_t option
Sourceval set_key : t -> int -> obj_t -> unit
Sourceval unset_key : t -> int -> unit
Sourceval check_key : t -> int -> bool
Sourceval blit_key : t -> int -> t -> int -> int -> unit
Sourceval get_data : t -> obj_t option
Sourceval get_data_copy : t -> obj_t option
Sourceval set_data : t -> obj_t -> unit
Sourceval unset_data : t -> unit
Sourceval check_data : t -> bool
Sourceval blit_data : t -> t -> unit
Sourceval max_ephe_length : int

Maximum length of an ephemeron, ie the maximum number of keys an ephemeron could contain

OCaml

Innovation. Community. Security.