2
0
Эх сурвалжийг харах

Meeting Xcode Beta3 requirements

Sali0m 10 жил өмнө
parent
commit
51a0944420

+ 3 - 3
CryptoSwift/ArrayExtension.swift

@@ -11,8 +11,8 @@ import Foundation
 extension Array {
     
     /** split in chunks with given chunk size */
-    func chunks(chunksize:Int) -> [Array<T>] {
-        var words = [[T]]()
+    func chunks(chunksize:Int) -> [Array<Element>] {
+        var words = [[Element]]()
         words.reserveCapacity(self.count / chunksize)        
         for var idx = chunksize; idx <= self.count; idx = idx + chunksize {
             let word = Array(self[idx - chunksize..<idx]) // this is slow for large table
@@ -24,4 +24,4 @@ extension Array {
         }
         return words
     }
-}
+}