title: What is the recommended way to break out of a block or stop the enumeration?
body: <p>So, I just realize that break is only for loop or switch. </p>
  
  <p><img src="https://i.stack.imgur.com/666Kz.png" alt="enter image description here"></p>
  
  <p>Here's my question: Is there a recommended way to break out of a block? For example: </p>
  
  <pre><code>func getContentFrom(group: ALAssetsGroup, withAssetFilter: ALAssetsFilter) {
      group.enumerateAssetsUsingBlock { (result, index , stop) -&gt; Void in
  
          //I want to get out when I find the value because result contains 800++ elements
      }
  }
  </code></pre>
  
  <p>Right now, I am using return  but I am not sure if this is recommended. Is there other ways? Thanks folks.</p>