| Song's profileSICP自留地BlogListsNetwork | Help |
|
|
July 22 sicp 3.2(define (make-monitored func) (let ((init 0)) (lambda (x) (cond ((eq? x 'how-many-calls?) init) ((eq? x 'reset-count) (set! init 0)) (else (set! init (+ 1 init)) (func x)))))) TrackbacksThe trackback URL for this entry is: http://mysicp.spaces.live.com/blog/cns!76113039590E11D7!159.trak Weblogs that reference this entry
|
|
|