Skip to content

Instantly share code, notes, and snippets.

@OneSadCookie
Created November 18, 2015 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OneSadCookie/5df156d52e509f0fcfa2 to your computer and use it in GitHub Desktop.
Save OneSadCookie/5df156d52e509f0fcfa2 to your computer and use it in GitHub Desktop.
extension Array where Element: Equatable {
mutating func remove(e: Element) {
for (i, f) in self.enumerate() {
if e == f {
self.removeAtIndex(i)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment