Node:Iteration, Previous:False and multiple values, Up:Control structure



Iteration

Q does not have any special forms for writing loops. Instead, as a number of forms for manipulating sequences. These can be combined in various ways to express iterations.

Examples: ...

X do Function
Get the elements of X, in order, until the end is reached. All the the elements are the converted to strings, which are then concatenated together. Informally, the same as: (X 0; X 1; X 2; ...).

Usually, do is evaluated for the side effects, when all the elements evaluate to "".