Skip to content

Commit

Permalink
Change Self.Index to Index for whatever reason
Browse files Browse the repository at this point in the history
  • Loading branch information
mz2 committed Sep 5, 2021
1 parent 2e92955 commit 78a57fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Carpaccio/Collection+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

// Inspired by http://moreindirection.blogspot.co.uk/2015/07/gcd-and-parallel-collections-in-swift.html
extension Swift.Collection where Self.Index == Int {
extension Swift.Collection where Index == Int {
public func parallelMap<T>(_ transform: @escaping ((Iterator.Element) throws -> T)) throws -> [T] {
return try self.parallelCompactMap(transform)
}
Expand Down

0 comments on commit 78a57fb

Please sign in to comment.