From 8804fa7cd9fbdc67dc4e3378c7044ffe81a06cb3 Mon Sep 17 00:00:00 2001 From: halw Date: Fri, 5 Mar 2010 03:07:57 +0000 Subject: [PATCH] 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 --- .../current/method/eiffel-tutorial-et/et-instructions.wiki | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/documentation/current/method/eiffel-tutorial-et/et-instructions.wiki b/documentation/current/method/eiffel-tutorial-et/et-instructions.wiki index 5f682c61..0bb0282d 100644 --- a/documentation/current/method/eiffel-tutorial-et/et-instructions.wiki +++ b/documentation/current/method/eiffel-tutorial-et/et-instructions.wiki @@ -43,7 +43,11 @@ The effect of such a multi-branch instruction, if the value of exp ===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====