package tezos-requester

  1. Overview
  2. Docs

A simple memory table backed by Hashtbl

Parameters

module P : PARAMETERS

Signature

type 'a t

subtypes Hashtbl.SeededS

type key = P.key
val create : ?random:bool -> int -> 'a t
val find : 'a t -> key -> 'a option
val add : 'a t -> key -> 'a -> unit
val replace : 'a t -> key -> 'a -> unit
val remove : 'a t -> key -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val length : 'a t -> int
OCaml

Innovation. Community. Security.