For
In Wu there are two different ways to use for loops. The first one is very simple:
Simply using a single integer, you can repeat a certain code block a given amount of times.
The second way to use a for loop is using iterators. In the following snippet, we use the range
built-in iterator:
Of course, enumerating iterators also exist:
Or simply iterating a list:
Last updated