ement-throws-s"><div class="p">
    <p>Returns an <code>Array</code> containing the concatenated results of mapping
<code>transform</code> over <code>self</code>.</p>

<pre><code class="language-swift">s.flatMap(transform)</code></pre>

<p>is equivalent to</p>

<pre><code class="language-swift">Array(s.map(transform).flatten())</code></pre>

<p><strong>Complexity:</strong> O(<em>M</em> + <em>N</em>), where <em>M</em> is the length of <code>self</code>
  and <em>N</em> is the length of the result.</p>

    <