whalesong/parser/lam-entry-gensym.rkt
2011-05-26 18:51:00 -04:00

14 lines
315 B
Racket

#lang typed/racket/base
(define-values (make-lam-label reset-lam-label-counter!/unit-testing)
(let ([n 0])
(values
(lambda ()
(set! n (add1 n))
(string->symbol (format "lamEntry~a" n)))
(lambda ()
(set! n 0)))))
(provide make-lam-label reset-lam-label-counter!/unit-testing)