TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Statement

for

Syntax

for <variable> in <list> do <statements> od;

Description

The 'for' loop executes the <statements> for every element of <list>. The statement sequence <variable> is first executed with <variable> bound to the first element of <list>, then with <variable> bound to the second element of <list> and so on. <variable> must be a simple variable, it must not be a list element selection or a record component selection.

Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group