map-segmentofresult_-escaping-self-elements-element-segmentofresult"><div class="p">
    <p>Returns the concatenated results of mapping the given transformation over
this sequence.</p>

<p>Use this method to receive a single-level sequence when your
transformation produces a sequence or collection for each element.
Calling <code>flatMap(_:)</code> on a sequence <code>s</code> is equivalent to calling
<code>s.map(transform).joined()</code>.</p>

<p><strong>Complexity:</strong> O(1)</p>

    <h4>Declaration</