Ask your own question, for FREE!
OpenStudy Feedback 7 Online
OpenStudy (anonymous):

Question about stream operation delay. On page 268 (SICP 2nd) has this code: (define (memo-proc proc) (let ((already-run? false) (result false)) (lambda () (if (not already-run?) (begin (set! result (proc)) (set! already-run? true) result) result)))) In this process, it will test whether already-run? Is true, but every time the process memo-proc would set already-run? to false, how can this problem achieve it’s goal?

sammixboo (sammixboo):

@e.mccormick

OpenStudy (confluxepic):

@e.mccormick

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!