diff --git a/Contribute.swift b/Contribute.swift index 4e8ee7f..175045b 100644 --- a/Contribute.swift +++ b/Contribute.swift @@ -29,8 +29,7 @@ extension Dictionary { //From SwiftCheck extension Array { func separated() -> Array<(Element, Element)> { - let ordinals = [Int](1 ... self.count) - let withIndex = Zip2Sequence(ordinals, self) + let withIndex: [(Int,Element)] = self.enumerate().map{ ($0.0 + 1, $0.1) } let separated: ([Element], [Element]) = withIndex.reduce(([],[])) { acc, elem in let (ind, value) = elem