small string-join optimization
This commit is contained in:
@@ -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
|
||||
))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user