Lift out the recursive call, since that'll be shared across all substitutions.

original commit: f68efe9e317a53de87a4acb7e15875f4364044b7
This commit is contained in:
Stevie Strickland 2008-06-18 23:48:31 -04:00
parent 156c0d0d38
commit f939f616f5

View File

@ -63,7 +63,8 @@
(make-arr (append
(map sb dom)
;; We need to recur first, just to expand out any dotted usages of this.
(map (lambda (img) (substitute img name (sb (car drest)))) images))
(let ([expanded (sb (car drest))])
(map (lambda (img) (substitute img name expanded)) images)))
(sb rng)
#f
#f