clojure.string/join

functionsince v0.0-927 clojure.string/joinEdit
(join coll)
(join separator coll)

Details:

Returns a string of all elements in coll, as returned by (seq coll), separated by an optional separator.


Source docstring:
Returns a string of all elements in coll, as returned by (seq coll),
separated by an optional separator.
Source code @ clojurescript:src/main/cljs/clojure/string.cljs
(defn join
  ([coll]
   (loop [sb (StringBuffer.) coll (seq coll)]
     (if-not (nil? coll)
       (recur (. sb (append (str (first coll)))) (next coll))
       ^string (.toString sb))))
  ([separator coll]
   (loop [sb (StringBuffer.) coll (seq coll)]
     (if-not (nil? coll)
       (do
         (. sb (append (str (first coll))))
         (let [coll (next coll)]
           (when-not (nil? coll)
             (. sb (append separator)))
           (recur sb coll)))
       ^string (.toString sb)))))