删除元素
extension Array {
/// Removes the object that matches *predicate*.
mutating func removeElement(predicate Predicate: (Element) throws -> Bool) rethrows {
if let index = try index(where: Predicate) {
remove(at: index)
}
}
}