package dolmen_type

  1. Overview
  2. Docs

Fuzzy search Hashtables

type 'a t

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

val create : unit -> _ t

Create a new fuzzy hashtable.

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

Find the value bound to the given Identifier

  • raises Not_found

    if the id is not bound.

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

Add a new binding to the hashtable.

val 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.