package fix

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

Module Glue.InjectMinimalImperativeMapsSource

If there is an injection of t into u, then an implementation of minimal imperative maps for the type u can be transported to the type t.

Parameters

module M : sig ... end
module I : sig ... end

Signature

Sourcetype key = I.t

The type of keys.

Sourcetype 'data 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.

OCaml

Innovation. Community. Security.