Created
November 18, 2015 01:01
-
-
Save OneSadCookie/5df156d52e509f0fcfa2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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