I'm a Japanese programmer. I write about C#, Ruby and JavaScript.
(define (f x) (let ((y x)) (lambda () (set! y (+ y 1)) y)))
> (define a (f 1))> (display (a))2> (display (a))3> (display (a))4
Post a Comment
No comments:
Post a Comment