Is it “iterate through” or “iterate over” something? [closed]

“through” and “over” are useless adverbs.

Examples:

  • While iterating this collection, my code throws an error.

  • This code iterates the collection.

  • Your assignment is to write code that iterates the collection.

It’s like saying “up north” or “down south”. “up” and “down” are useless. Instead you should say, “I am going north for the summer.” or “In the south, they grow cotton.”

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)