d="comment-func-generator-element-string-joinwithseparator_"><div class="p">
    <p>Interpose the <code>separator</code> between elements of <code>self</code>, then concatenate
the result.  For example:</p>

<pre><code class="language-swift">[&quot;foo&quot;, &quot;bar&quot;, &quot;baz&quot;].joinWithSeparator(&quot;-|-&quot;) // &quot;foo-|-bar-|-baz&quot;</code></pre>

    <h4>Declaration</h4>    
    <code class="language-swift">func joinWithSeparator(separator: String) -&gt; String</code>
    
        <