mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 15:22:31 +01:00
Early introduction of two loop forms. As per recent feedback.
Author:halw Date:2010-03-05T03:07:57.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@505 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -43,7 +43,11 @@ The effect of such a multi-branch instruction, if the value of <code>exp</code>
|
||||
|
||||
===Loop===
|
||||
|
||||
The loop construct provides a flexible framework for iterative computation. Its flexibility lies in how the complete form can be tailored and simplified for certain purposes by including or omitting optional parts. We will explore the entire mechanism, but let's approach things a little at a time.
|
||||
The loop construct provides a flexible framework for iterative computation. Its flexibility lies in how the complete form can be tailored and simplified for certain purposes by including or omitting optional parts.
|
||||
|
||||
You'll learn that the loop construct is always used in one of two forms: a '''base''' form which allows precise control over details of all loop aspects, and an '''iteration''' form which abstracts many of the details and provides a concise notation for traversing data structures and other objects which support iteration.
|
||||
|
||||
We will explore the entire mechanism, but let's approach things a little at a time.
|
||||
|
||||
====Two examples====
|
||||
|
||||
|
||||
Reference in New Issue
Block a user