Loops/Continue: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
Hout (talk | contribs)
Line 806:
 
 
Stepping back from any assumption that repetitive patterns of computation necessarily entail iteration'loops', and using a functional idiom of JavaScript, we can make the value of one or more subexpressions in a ''reduce()'' fold conditional on any special cases that we define.
 
For example: