module Nat_generator:Generators for identifiers in an initial region of the naturals.Generator
with type t = int
A generator g
has identifiers in the range 0
.. Nat_generator.count g - 1
.
include Id.T
type
generator
val new_generator : unit -> generator
val fresh : generator -> t
val count : generator -> int
count >= 0
val iter : (t -> unit) -> generator -> unit
val fold : ('a -> t -> 'a) -> 'a -> generator -> 'a