for loops
Ferret has only one loop construct, for
.
But, it can be used three different ways.
-
Iterations (like
foreach
in other languages) -
Conditional loops (like
while
) -
Infinite loops (like
while (true)
)