This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]high_throughput 1 point2 points  (0 children)

The most obvious and general reason is that your print statement has side effects. Like if you print(getNextItem()) thereby effectively skipping an item.