package store-dict
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=42d6c7a850a7ac113c5470d6ebe9b5a160a9aa57d009b7eda17a14cda5a54a1dcecd146281322da70579bab08ede70ebe23aa5c48cc3ad3c2c90098424fafbb7
doc/store-dict/Store_Dict/index.html
Module Store_DictSource
Store_Dict exposes a functor Make to define custom snapshottable dictionaries, on top of any user-provided implementation of an associative data structure.
We also provide a Hashtbl which is an instance of Make on the standard-library Hashtbl module.
Store_Dict.S describes the signature that is expected from the associative data structure you want to use. It is a subset of the standard library's Hashtbl.S for convenience.
Provided an implementation of mutable associative maps satisfying the signature Store_Dict.S, the functor Store_Dict.Make builds a stored associative map. It exposes the same operations as S, but they take an additional store argument to support backtracking.
Hashtbl is a store-indexed version of the polymorphic hashtables of the standard library's Hashtbl module.