mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-05 08:10:05 +00:00
better increment test
This commit is contained in:
parent
f0b666f623
commit
8dc8cef7dc
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user