package fix

  1. Overview
  2. Docs
Algorithmic building blocks for memoization, recursion, and more

Install

Dune Dependency

Authors

Maintainers

Sources

archive.tar.gz
md5=75aeb28e58d5a2c8b8c2590d23d1122d
sha512=744b08403beb22d8d960976792dd2f80ee9b47c9b3d3977d98e09aa127c3e21531acb305ab42c734ad1067b0ababa43b251afd3e111d296e3b07fbe2c187b082

doc/fix/Fix/Gensym/index.html

Module Fix.GensymSource

This module offers a simple facility for generating fresh integer identifiers.

Sourcetype gensym = unit -> int

A gensym is a generator of unique integer identifiers.

Sourceval make : unit -> gensym

make() produces a new gensym.

Sourcetype generator

A generator whose current state can be inspected (but not modified).

Sourceval generator : unit -> generator

generator() creates a new generator.

Sourceval fresh : generator -> int

fresh g causes the generator g to create and return a fresh integer identifier.

Sourceval current : generator -> int

current g returns the current state of the generator g, that is, the next available integer identifier.

OCaml

Innovation. Community. Security.