User talk:Chunes: Difference between revisions

Line 60:
 
When reading Loops/Downward, [https://rosettacode.org/wiki/Loops/Downward_for#Plain_English Loops Downward], I stumbled over the initial value being 11. Should be 10, I guess. Or do I miss something? Best regards. [[User:Cg|Cg]] ([[User talk:Cg|talk]]) 13:39, 10 Dec 2020 (CET)
 
:<code>If a counter is past a number</code> is a decider (boolean function) defined in the noodle that looks like this:
 
:<lang plainenglish>To decide if a counter is past a number:
Add 1 to the counter.
If the counter is greater than the number, say yes.
Say no.</lang>
 
:So it adds 1 to the counter before performing the comparison. This often works out nicely but it can make some things awkward. One could just as easily make a version that performs the comparison first and then adds one to the counter on the way out, or avoid using a routine like this altogether. --[[User:Chunes|Chunes]] ([[User talk:Chunes|talk]]) 13:57, 10 December 2020 (UTC)
1,808

edits