I have two arrays
var array1 = new Array [\"a\", \"b\", \"c\", \"d\", \"e\"] var array2 = new Array [\"a\", \"c\", \"d\"]
I want to remove
You can create sets and then use the subtract method
let setA = Set(arr1) let setB = Set(arr2) setA.subtract(setB)