tor</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>
    
        <h4>Declared In</h4>
        <a href="../../protocol/CollectionType/"><code>CollectionType</code></a>,    <a hr