-- main.mcl -- import "fmt" $list = ["a", "b", "c",] for $index, $value in $list { test [fmt.printf("%s is %d", $value, $index),] {} } -- OUTPUT -- Vertex: test[a is 0] Vertex: test[b is 1] Vertex: test[c is 2]