What would be iteration?

In a question I asked, I questioned what it was and what the function of ListIterator would be, so the term iteration came up, what would that be?

Link to question

Author: Comunidade, 2017-02-20

1 answers

Iteration | s.F. Fem derivation. sing. iterate

I·te * ra * feminino feminine noun

Repeat.

"iteração", in Dicionário Priberam da Língua Portuguesa [online], 2008-2013, https://www.priberam.pt/dlpo/itera%C3%A7%C3%A3o [consulted on 20-02-2017].

Maybe the word "iterate "sounds new, but you've probably heard"reiterate". I think everyone understands that "re-iterating" is repeating the iteration. Or whether to repeat what should already be known, because it has been done one or more times before. Reiterating is iterating again after the first iteration, it is something separate from the original iteration. An iteration occurs together.

In computing every block of commands that is repeating its execution infinitely or with the closure at a certain time meeting some condition is an iteration.

Much used for traversing all, or part of, elements of a sequence of give.

This technique is opposed to recursion which is a different mechanism that can get the same result.

So a for, foreach, while, do...while, repeat...until, goto back to back, loop, each, dolist, PERFORM, etc. tosos they are syntaxes of the engine that causes iterations in the code.

So it's just a nicer way of saying it's going to repeat.

We can say "makes an increment in each iteration" which is the same as " makes an increment in each repetition "or still" increments each time it turns the Loop "

In that context is precisely this, I was talking to repeat every time it executes the entire block of commands contained there.

Therefore the iterator is the mechanism that does or collaborates in repetition. Either it is managed by the language (when compiling/interpreting) or it is a library object that manages the repetitions indicating where it is and whether to stop.

 7
Author: Maniero, 2020-04-30 18:11:22