Saturday, December 6, 2008

Learnings (BETINOL)

December1-5

Actually we don't have a class seriously because .. it is teachers day!!

Our TLE teacher is included in the dance contest so some of the reporters are task to report since we don't have a teacher.

It as more on examples about iterative statements.

terative Statements

Three types of iterative statement are provided in Magma: the for-statement providing definite iteration and the while- and repeat-statements providing indefinite iteration.

Iteration may be performed over an arithmetic progression of integers or over any finite enumerated structure. Iterative statements may be nested. If nested iterations occur over the same enumerated structure, abbreviations such as for x, y in X do may be used; the leftmost identifier will correspond to the outermost loop, etc. (For nested iteration in sequence constructors, see Chapter SEQUENCES.)

Early termination of the body of loop may be specified through use of the `jump' commands break and continue.

Subsections

No comments: