summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2008-11-06 14:37:19 +0000
committerRich Hickey <richhickey@gmail.com>2008-11-06 14:37:19 +0000
commit9f3930a61617a37a02f2df317a65a72671bf37b8 (patch)
tree5d945d49f19ce61a494a4a00b05b8bd8a32bd7eb /src
parentd3d2b3a1523aac31887b7670a56fcf472a588771 (diff)
made variadic str not retain seq
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/boot.clj9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj
index 4415d9bc..4f51ace9 100644
--- a/src/clj/clojure/boot.clj
+++ b/src/clj/clojure/boot.clj
@@ -315,10 +315,11 @@
([#^Object x]
(if (nil? x) "" (. x (toString))))
([x & ys]
- (loop [sb (new StringBuilder #^String (str x)) more ys]
- (if more
- (recur (. sb (append (str (first more)))) (rest more))
- (str sb)))))
+ ((fn [#^StringBuilder sb more]
+ (if more
+ (recur (. sb (append (str (first more)))) (rest more))
+ (str sb)))
+ (new StringBuilder #^String (str x)) ys)))
(defn symbol
"Returns a Symbol with the given namespace and name."