---
name: "Obj.Ephemeron"
section: "3o"
platform: "linux"
package: "ocaml"
version: "5.5.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Obj.Ephemeron"
---

# Obj.Ephemeron(3o)

no description

## NAME

Obj.Ephemeron - 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
