<code>nil</code> results of mapping the given transformation over
this sequence.</p>

<p>Use this method to receive a sequence of nonoptional values when your
transformation produces an optional value.</p>

<p><strong><code>transform</code>:</strong>  A closure that accepts an element of this sequence
  as its argument and returns an optional value.</p>

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

    <h4>Declaration</h4>    
    <code class="language-swift">func compactMap&lt;ElementOfResult&gt;(_ transform: