I want to remove all elements of value x from an array that contains x, y and z elements
let arr = [\'a\', \'b\', \'c\', \'b\']
How can I r
If you have more than one element to remove, thanks to first answer.
var mainArray = ["a", "b", "qw", "qe"] let thingsToRemoveArray = ["qw", "b"] for k in thingsToRemoveArray { mainArray = mainArray.filter {$0 != k} }