title: Does Swift has a function like `array.reject` in Ruby?
body: <p>Ruby has a very elegant <code>reject</code> function for array:</p>
  
  <pre><code>arr = [1, 2, 3, 4, 5, 6]
  arr.reject { |a| a &lt; 3 }     #=&gt; [3, 4, 5, 6]
  </code></pre>
  
  <p>I know swift has a <code>filter</code> function. I wonder if Swift has a similar one to <code>reject</code>.</p>