use for rather than let loop

This commit is contained in:
John Clements 2012-06-24 09:26:38 -07:00
parent 2d1cf47636
commit 46899084f1

View File

@ -245,11 +245,10 @@
(select-all)
(clear)
(reset-style)
(let loop ([remaining stripped-exps] [first #t])
(unless (null? remaining)
(unless first (insert #\newline))
(format-sexp (car remaining))
(loop (cdr remaining) #f)))
(for ([exp stripped-exps] [i (in-naturals)])
(unless (= i 0)
(insert #\newline))
(format-sexp exp))
(end-edit-sequence)
(lock #t))