Closures/Value capture: Difference between revisions

fixed scheme code to task accordance
(added simplified scheme solution)
(fixed scheme code to task accordance)
Line 1,186:
list))
 
(define list-of-functions (build-list-of-functions 1110 1 '()))
 
(map (lambda (f) (f)) list-of-functions)
Line 1,193:
 
{{out}}
<lang scheme>'(1 4 9 16 25 36 49 64 81 100)
81</lang>
 
Anonymous user