package dolmen_type

  1. Overview
  2. Docs

Module Misc.Fuzzy_HashtblSource

Fuzzy search Hashtables

Sourcetype 'a t

The type of fuzzy hashtables from Dolmen identifiers to values of type 'a.

Sourceval create : unit -> _ t

Create a new fuzzy hashtable.

Sourceval find : 'a t -> Dolmen.Std.Id.t -> 'a

Find the value bound to the given Identifier

Sourceval add : 'a t -> Dolmen.Std.Id.t -> 'a -> unit

Add a new binding to the hashtable.

Sourceval suggest : 'a t -> limit:int -> Dolmen.Std.Id.t -> Dolmen.Std.Id.t list

Return a list of bound identifiers in the hashtbl that are close (up to limit in terms of edition distance) to the given id.

OCaml

Innovation. Community. Security.