-- main.mcl -- import "fmt" $list = ["a", "b", "c",] $value = 42 # should be out of scope (also not the same type) for $index, $value in $list { $s = fmt.printf("%s is %d", $value, $index) test [$s,] {} } -- OUTPUT -- Vertex: test[a is 0] Vertex: test[b is 1] Vertex: test[c is 2]