Swifterswift: Mutating versions of removeDuplicates(keyPath:)

Created on 16 Sep 2019  路  2Comments  路  Source: SwifterSwift/SwifterSwift

  • [x] 馃殌 I've read, understood, and done my best to follow the Contributing guidelines before opening this issue.

Currently there are nonmutating withoutDuplicates() and mutating removeDuplicates() in extension Array. Let's add mutating versions of func withoutDuplicates<E: Equatable>(keyPath path: KeyPath<Element, E>) -> [Element] and func withoutDuplicates<E: Hashable>(keyPath path: KeyPath<Element, E>) -> [Element].

SwifterSwift Environment

  • SwifterSwift version: 5.0.0
  • Xcode version: 10.3
  • macOS version running Xcode: 10.14.6
  • Swift version: 5.0
  • Platform(s) running SwifterSwift: macOS
Hacktoberfest good first issue help wanted

Most helpful comment

Thank's @RomanPodymov @iglushchuk :)

All 2 comments

I can handle it :)

Thank's @RomanPodymov @iglushchuk :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

g001613001 picture g001613001  路  5Comments

omaralbeik picture omaralbeik  路  3Comments

SD10 picture SD10  路  3Comments

omaralbeik picture omaralbeik  路  3Comments

bjimenezned picture bjimenezned  路  3Comments