-- main.mcl -- import "fmt" $list = ["a", "b", "c",] $value = "nope" # should be out of scope 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]