Ver código fonte

Meeting Xcode Beta3 requirements

Sali0m 10 anos atrás
pai
commit
51a0944420
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      CryptoSwift/ArrayExtension.swift

+ 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
     }
-}
+}