Iterates over an enumerable collection.