mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-11-11 18:10:04 +00:00
better increment test
This commit is contained in:
@@ -23,11 +23,7 @@ proto Vector
|
|||||||
end
|
end
|
||||||
|
|
||||||
function __next(self)
|
function __next(self)
|
||||||
if self.iterIndex > self.x then
|
return self.vector[self.iterIndex++]
|
||||||
return nil
|
|
||||||
end
|
|
||||||
|
|
||||||
return vector[self.iterIndex++]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user