Skip to content

Commit

Permalink
updated Array extension with removeObject function
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldahan committed Dec 31, 2015
1 parent 2b5408d commit 5e2ee21
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/GraphKit+Array.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
// in a file called LICENSE. If not, see <http://www.gnu.org/licenses/>.
//

//extension Array {
// mutating func removeObject<T: Equatable where T == Array.Generator.Element>(object: T) -> T? {
// if let v: Int = indexOf(object) {
// return removeAtIndex(v)
// }
// return nil
// }
//}

extension Array : ProbableType {
/**
The instance count of elements.
Expand Down

0 comments on commit 5e2ee21

Please sign in to comment.