JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/join



    cfunction

    (string/join parts &opt sep)

    Joins an array of strings into one string, optionally separated by 
    a separator string sep.


3 examplesSign in to add an example
Loading...
(string/join @["1" "2" "3"]) # => "123"
# The esp argument is optional, and defaults to empty string
yumaikasPlayground
(defn spit-lines [path lines]
  (spit path (string/join lines "\n")))
cellularmitosisPlayground
(string/join @["alice" "bob" "eve"] "\t") # => "alice\tbob\teve"
sogaiuPlayground