- exact-integer-generatorprocedure
Create an infinite generator that returns objects that fulfill the exact? and integer? predicates. The generator should return the sequence
0 1 -1
first, then a uniformly random distribution of exact integers. Elements of the above sequence may be omitted if they are not distinguished in the implementation.
(define exact-int-gen (exact-integer-generator)) (exact-int-gen) ; => 0