How to iterate through an array/list?

Hello, I'm coming from Java to Mojo.
It seems there is no support for iterating with "for" through a list - at least in the present version of Mojo. Here's the code:

def createFreeformExtrusion(lines:((Int,Int),(Int,Int),Optional[(Int,Int)])[], height)->String: # currently without curves.
    code=""
    for line in lines:
        if line[2]:

Should work, doesn't it? It does work in Python.
Thanks.
Was this page helpful?