for loops

Ferret has only one loop construct, for.

But, it can be used three different ways.

  1. Iterations (like foreach in other languages)
  2. Conditional loops (like while)
  3. Infinite loops (like while (true))

Next: for iterations