Ephemeron.K1.Bucket(3)
π NAME π
Bestie, welcome to the Ephemeron.K1.Bucket(3) page β yes, that's the manual page name, and it lives in the OCaml library. The name section itself literally says no description, so that's not me skipping the tea; the page just came in with no description. π«Ά
π¦ Module π¦
The module is Ephemeron.K1.Bucket. Slay, we love a clearly labeled module. π
β¨ Documentation β¨
The docs open with this exact module signature:
Module Bucket
: sig end
Then we get the type, and it's giving mutable-list-of-ephemerons energy:
type ('k, 'd) t
A bucket is a mutable "list" of ephemerons. Periodt. π
val make : unit -> ('k, 'd) tβ Creates a new bucket. Fresh bucket, new main-character era. β¨val add : ('k, 'd) t -> 'k -> 'd -> unitβ Adds an ephemeron to the bucket. Drop it in, bestie. π«Άval remove : ('k, 'd) t -> 'k -> unitβremove b kremoves frombthe most-recently added ephemeron with keyk, or does nothing if there is no such ephemeron. No cap, most-recently-added is the one that gets taken out. πval find : ('k, 'd) t -> 'k -> 'd optionβ Returns the data of the most-recently added ephemeron with the given key, orNoneif there is no such ephemeron. So you either get the data or a very chillNone. πval length : ('k, 'd) t -> intβ Returns an upper bound on the length of the bucket. Not necessarily the exact length β it's an upper bound, okay? Don't come for me. πval clear : ('k, 'd) t -> unitβ Removes all ephemerons from the bucket. Clean slate, iconic behavior. π
Crafted by OCamldoc, dated 2026-06-22, for Ephemeron.K1.Bucket(3) β mwah, bye bestie! πππ¦
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms