Top "Iteration" questions

Iterations are the successive repetitions in loops such as for, foreach or while.

Is generator.next() visible in Python 3?

I have a generator that generates a series, for example: def triangle_nums(): '''Generates a series of triangle numbers''' tn = 0 …

python python-3.x iteration
How to iterate through range of Dates in Java?

In my script I need to perform a set of actions through range of dates, given a start and end …

java date iteration
C# Iterating through an enum? (Indexing a System.Array)

I have the following code: // Obtain the string names of all the elements within myEnum String[] names = Enum.GetNames( typeof( …

c# enums iteration system.array
How to produce a range with step n in bash? (generate a sequence of numbers with increments)

The way to iterate over a range in bash is for i in {0..10}; do echo $i; done What would be …

bash range iteration
Is there a way to iterate over a dictionary?

I know NSDictionaries as something where you need a key in order to get a value. But how can I …

ios objective-c foreach iteration nsdictionary
Iterate through Nested JavaScript Objects

I'm trying to iterate through a nested object to retrieve a specific object identified by a string. In the sample …

javascript iteration
What's the safest way to iterate through the keys of a Perl hash?

If I have a Perl hash with a bunch of (key, value) pairs, what is the preferred method of iterating …

perl hash iteration each
Difference between agile and iterative and incremental development

What are the difference between Agile and iterative and incremental development? Is Agile considered as iterative and incremental? Some info …

agile methodology iteration
Python: Adding element to list while iterating

I know that it is not allowed to remove elements while iterating a list, but is it allowed to add …

python iteration
Iterating on a file doesn't work the second time

I have a problem with iterating on a file. Here's what I type on the interpreter and the result: >&…

python file iteration