fork download
  1. (define (example)
  2. (let ((x 0))
  3. (lambda ()
  4. (set! x (+ x 1))
  5. x)))
  6.  
  7. (define f (example))
  8. (display f)
  9. (display f)
Success #stdin #stdout 0.03s 4176KB
stdin
Standard input is empty
stdout
#<procedure f ()>#<procedure f ()>