Obj.Ephemeron(3o)

Obj.Ephemeron3o

No description

Module

Module Obj.Ephemeron

Documentation

Module Ephemeron
: sig end

Ephemeron with arbitrary arity and untyped

type obj_t = Obj.t

alias for Obj.t

type t

an ephemeron cf Obj.Ephemeron

val 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 Obj.Ephemeron.max_ephe_length (limits included).

val length : t -> int

return the number of keys

val get_key : t -> int -> obj_t option

val get_key_copy : t -> int -> obj_t option

val set_key : t -> int -> obj_t -> unit

val unset_key : t -> int -> unit

val check_key : t -> int -> bool

val blit_key : t -> int -> t -> int -> int -> unit

val get_data : t -> obj_t option

val get_data_copy : t -> obj_t option

val set_data : t -> obj_t -> unit

val unset_data : t -> unit

val check_data : t -> bool

val blit_data : t -> t -> unit

val max_ephe_length : int

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

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From ocaml 5.5.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.