find in array and delte

  if let foundIndex = find(self.friends!, friend)
{

         //remove the item at the found index
         self.friends!.removeAtIndex(foundIndex)

}

swift 2.0

if let foundIndex = bombsOnScreen.indexOf( bomb)
{
        bombsOnScreen.removeAtIndex(foundIndex)
}

Tags: