[plt-scheme] pseudo statics

From: Hugh Myers (hsmyers at gmail.com)
Date: Wed Jul 1 13:46:39 EDT 2009

Somewhere is a discussion about code like:

(define counter
    (let ((a 0))
      (lambda ()
        (set! a (+ 1 a))
        a)))

I just can't remember where! Anyone have any useful pointers or such?

--hsm


Posted on the users mailing list.