>>> from balla import balla --ini >>> it = balla([3, 2, 3, -1, 7, -4], 0) >>> next(it) 0 >>> next(it) 3 >>> next(it) 2 >>> next(it) 5 >>> it = balla([3, 2, 3, -1, 7, 1], 0) >>> it == iter(it) True >>> list(it) [0, 3, 2, 5] --fi >>> it = balla([3, 2, 3, -1, 7, -7], 0) >>> it == iter(it) True >>> list(it) [0, 3, 2, 5] >>> it = balla([3, 2, 3, -1, 7, -4], 1) >>> it == iter(it) True >>> next(it) 1 >>> next(it) 3 >>> next(it) 2 >>> next(it) 5 >>> next(it) 1 >>> next(it) 3 >>> next(it) 2 >>> it == iter(it) True >>> it = balla([1, 3, 5, 3, -1, 3, -4, -2, 1, 1], 1) >>> it == iter(it) True >>> list(it) [1, 4, 3, 6, 2, 7, 5, 8, 9]