             return nil
         }
         var g = self.generate()
-        for _ in 0..index {
+        for _ in 0..<index {
             g.next()
         }
         return g.next()

            }
            return false
        }
        return GeneratorOf(sorted.generate())
    }

    init<S: Sequence where S.GeneratorType.Element == T>(source: S, comparators: Array<(T, T) -> Bool>) {

    
    func any() -> Bool {
        var g = self.generate()
        return g.next().getLogicValue()
    }
    
    func any(predicate: T -> Bool) -> Bool {
