package lrgrep

  1. Overview
  2. Docs
Detailed error messages for Menhir-generated parsers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

lrgrep-0.9.tbz
sha256=e53de12e4c5cbe6bca00643593266b4f9fa2e3f6a138195eeff7a4329f5c1c75
sha512=7fd7c4d11506fea7cc11c9bbf5aea9142d905643553c0c90e1bb16b794106b0c14a266acf89ae91b6929008dc0ba6515f788642873e2e4ba6c3d49bd45d25127

doc/fix/Fix/Glue/ArraysAsImperativeMaps/index.html

Module Glue.ArraysAsImperativeMapsSource

An implementation of imperative maps as arrays is possible if keys are consecutive integers.

Parameters

module K : sig ... end

Signature

Sourcetype key = int

The type of keys.

Sourcetype 'data t = 'data option array

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.

Sourceval clear : 'data t -> unit

clear empties a map.

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

iter iterates over all entries.