remove item from list

Code:

var array = ["hello", "world"]
array.removeAll { value in
  return value == "hello"
}
// array is now ["world"]