Remove from array

var array = ["qwe","findmeTORemove","zxc"]

var foundIndex = [Int]()
var ind = 0
for a in array
{
  if a == "findmeTORemove"
  {
    foundIndex.append(ind)
   
  }
  ind++
}
array
for var i = foundIndex.count-1 ; i >= 0 ; i--
{
  array.removeAtIndex(foundIndex[i])
}


array = ["qwe","zxc"]

Tags: