jon.recoil.org

Module Ephemeron.K1Source

Ephemerons with one key.

Sourcetype ('k, 'd) t

an ephemeron with one key

Sourceval make : 'k -> 'd -> ('k, 'd) Stdlib.Ephemeron.K1.t

Ephemeron.K1.make k d creates an ephemeron with key k and data d.

Sourceval query : ('k, 'd) Stdlib.Ephemeron.K1.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.

Functor building an implementation of a weak hash table

Sourcemodule MakePortable (H : sig ... end) : sig ... end

Like Make, but takes a portable hash function to portable Ephemeron operations.

Functor building an implementation of a weak hash table. The seed is similar to the one of Hashtbl.MakeSeeded.

Sourcemodule MakeSeededPortable (H : sig ... end) : sig ... end

Like MakeSeeded, but takes a portable seeded_hash function to portable Ephemeron operations.

Sourcemodule Bucket : sig ... end