Ephemeron.K1(3)

πŸ’– NAME πŸ’–

Ephemeron.K1 β€” Ephemerons with one key.

okay bestie, welcome to the Ephemeron.K1(3) page from the OCaml library manual ✨ this one is literally all about ephemerons with exactly one key, and it's giving β€œsmall but mighty” πŸ’…

🧚 Module 🧚

Module Ephemeron.K1 β€” yes, that's the module, and we're already in it, main character energy πŸ‘‘

πŸ“š Documentation πŸ“š

Module K1
 : sig end

Ephemerons with one key. one key, one data, no cap 🫢

type ('k, 'd) t

an ephemeron with one key β€” that's the type, bestie, and it's carrying the whole β€œone key” concept πŸŽ€

val make : 'k -> 'd -> ('k, 'd) t

Ephemeron.K1.make k d creates an ephemeron with key k and data d . slay, you hand it a key and some data and it makes the ephemeron πŸ’–

val query : ('k, 'd) t -> 'k -> 'd option

Ephemeron.K1.query eph key returns Some x (where x is the ephemeron's data) if key is physically equal to eph's key, and None if eph is empty or key is not equal to eph's key. physical equality is the vibe check here πŸ‘€

module Make : (H : Hashtbl.HashedType) -> sig end

Functor building an implementation of a weak hash table. weak hash table implementation builder, iconic ✨

module MakeSeeded : (H : Hashtbl.SeededHashedType) -> sig end

Functor building an implementation of a weak hash table. The seed is similar to the one of Hashtbl.MakeSeeded . seeded version, iykyk 🌱

module Bucket : sig end

bucket module, that's the whole entry, periodt πŸͺ£


okay that's the page, bestie 🫢 this was Ephemeron.K1(3) from the OCaml library manual, source OCamldoc, dated 2026-06-22 β€” bye πŸ’œ

πŸ“¦ where this page comes from