blob: 13662c44c0795eee5f28838272f68d96d80931b3 [file] [log] [blame] [view] [edit]
The `for in` construct can be used to iterate an `Iterator`, a lazy value
generator (more details later). One of the most common iterators is the `range`
function. `range(a, b)` will yield values from `a` (inclusive) to `b`
(exclusive) in steps of one.
Let's write fizzbuzz using `for` instead of `while`.
{for.play}