title: Swift : Cannot invoke 'filter' with an argument list of type '(@noescape (Int) throws -> Bool)'
body: <p>I am stuck with this error: </p>
  
  <pre><code>func compactCoords(coords: [Int]) -&gt; [Int]{
      return coords.filter({ (value) -&gt; Bool in
          return value != 0
      })
  }
  </code></pre>
  
  <p>Cannot invoke 'filter' with an argument list of type '(@noescape (Int) throws -> Bool)'</p>
  
  <p>Thanks for your help!</p>