package ringo

  1. Overview
  2. Docs
Caches (bounded-size key-value stores) and other bounded-size stores

Install

Dune Dependency

Authors

Maintainers

Sources

ringo-v0.6.tar.gz
md5=9e542555814d906bc8da0236e1adf815
sha512=db25e84ed67b6e55d630c372b33e61037bf197407e05ad5bf1b2b5ccf2719fab4437cbd2040d48fd15db590b52f0f1d4598105ca029749702e69e80f2ae15f51

doc/ringo/Ringo/SingletonSet/argument-1-H/index.html

Parameter SingletonSet.H

type t

The type of the hashtable keys.

val equal : t -> t -> bool

The equality predicate used to compare keys.

val hash : t -> int

A hashing function on keys. It must be such that if two keys are equal according to equal, then they have identical hash values as computed by hash. Examples: suitable (equal, hash) pairs for arbitrary key types include

  • ((=), hash) for comparing objects by structure (provided objects do not contain floats)
  • ((fun x y -> compare x y = 0), hash) for comparing objects by structure and handling Stdlib.nan correctly
  • ((==), hash) for comparing objects by physical equality (e.g. for mutable or cyclic objects).
OCaml

Innovation. Community. Security.