small string-join optimization
This commit is contained in:
parent
6638cdff55
commit
13e5097f3a
|
|
@ -33,9 +33,9 @@
|
|||
(define i 0)
|
||||
(for e lst
|
||||
(if (= i 0)
|
||||
(define rslt (display e))
|
||||
(define rslt (+ rslt (display sep) (display e))))
|
||||
(define i (inc i)))
|
||||
(do (define rslt (display e)) (define i 1))
|
||||
(define rslt (+ rslt (display sep) (display e)))
|
||||
))
|
||||
rslt
|
||||
))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue