diff options
author | Rich Hickey <richhickey@gmail.com> | 2008-11-06 14:37:19 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2008-11-06 14:37:19 +0000 |
commit | 9f3930a61617a37a02f2df317a65a72671bf37b8 (patch) | |
tree | 5d945d49f19ce61a494a4a00b05b8bd8a32bd7eb /src | |
parent | d3d2b3a1523aac31887b7670a56fcf472a588771 (diff) |
made variadic str not retain seq
Diffstat (limited to 'src')
-rw-r--r-- | src/clj/clojure/boot.clj | 9 |
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." |