Iteration

There are several iteration mechanisms in Lumen. The simplest is a while loop:


    

The shorthand for iterating from 0 to N is for:


    

You can enumerate the keys and values of a list with each:


    

each will bind keys and values in any order. If you want only the positional values of a list, you can enumerate them in order using step: