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

This commit is contained in:
Stevie Strickland 2008-06-18 23:48:31 -04:00
parent 51ec643172
commit f68efe9e31

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