Loops: Difference between revisions

From Rosetta Code
Content added Content deleted
(New page: Loop/Infinite - Perform the same series of actions indefinitely. Loop/While - While the condition holds true, execute a series of actions. Loop/Do While - Execute a series of...)
 
(Redirecting to Category:Iteration)
 
Line 1: Line 1:
#REDIRECT [[:Category:Iteration]]
[[Loop/Infinite]] - Perform the same series of actions indefinitely.

[[Loop/While]] - While the condition holds true, execute a series of actions.

[[Loop/Do While]] - Execute a series of actions, and repeat until the condition no longer holds true.

[[Loop/For]] - Given an initialization action, loop termination condition and iteration stepping action execute a body of code.

[[Loop/Foreach]] - Execute a series of actions with the binding of some variable to each element in a collection in turn.

[[Loop/Map]] - Create a new list by mapping some function on each element of a list.

[[Loop/Fold]] - write something here

Latest revision as of 18:33, 14 April 2008

Redirect to: