def next(self):
        ret = None
        if self.hasNext():
            ret = self.vec2d[self.i][self.j]
            self.j += 1

        return ret
:rtype: int
dataset/ETHPy150Open algorhythms/LeetCode/251 Flatten 2D Vector.py/Vector2D.next