package lrgrep

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Glue.HashTablesAsImperativeMapsSource

An implementation of imperative maps as a hash table.

Parameters

module H : sig ... end

Signature

type key = H.t

The type of keys.

type 'data t = 'data Stdlib.Hashtbl.Make(H).t

The type of association maps.

Sourceval create : unit -> 'data t

create() creates a fresh empty map.

Sourceval add : key -> 'data -> 'data t -> unit

add inserts a new entry or replaces an existing entry. The map is updated in place.

Sourceval find : key -> 'data t -> 'data

find raises Not_found if the key is not in the domain of the map.

val clear : 'data t -> unit

clear empties a map.

val iter : (key -> 'data -> unit) -> 'data t -> unit

iter iterates over all entries.