title: Skip item when performing map in Swift?
body: <p>I'm applying a map to a dictionary that has a <code>try</code> in it. I'd like to skip the iteration if the mapped item is invalid.</p>
  
  <p>For example:</p>
  
  <pre><code>func doSomething&lt;T: MyType&gt;() -&gt; [T]
      dictionaries.map({
          try? anotherFunc($0) // Want to keep non-optionals in array, how to skip?
      })
  }
  </code></pre>
  
  <p>In the above sample, if <code>anotherFunc</code> returns <code>nil</code>, how to escape the current iteration and move on to the next? That way, it would not contain the items that are <code>nil</code>. Is this possible?</p>