title: Extra argument 'where' in call
body: <p>I'm working on removing an item from an array in swift, and I'm not sure why I'm getting this error.</p>
  
  <p>My code is:</p>
  
  <pre><code>var itemToRemove = list[indexPath.item]
  selectedCasesArray.removeAll(where: { $0 == itemToRemove })
  </code></pre>
  
  <p>There code is in a CollectionView's <code>didSelect</code> function.</p>
  
  <p><code>itemToRemove</code> is of type <code>CaseFormat</code> and <code>selectedCaseArray</code> is of type <code>[CaseFormat]</code>.</p>
  
  <p>Why doesn't this work? Apple's documentation allows it in Swift 4.2+, and I'm on Swift 5</p>
  
  <hr>
  
  <p>I was asked to show how <code>CaseFormat</code> is declared:</p>
  
  <pre><code>class CaseFormat {
  
  var id : Int
  var imageName : String
  var isSelected : Bool
  var solve : String
  var testTicks : Int
  
  init(id : Int, imageName : String, isSelected : Bool, solve : String, testTicks : Int) {
      self.id = id
      self.imageName = imageName
      self.isSelected = isSelected
      self.solve = solve
      self.testTicks = testTicks
  }
  
  }
  </code></pre>