-- main.mcl --
import "fmt"

$list1 = ["a", "b", "c",]
$list2 = ["x", "y", "z",]

$word = "hello"

for $index1, $value1 in $list1 {
	for $index2, $value2 in $list2 {

		class foo($x, $y) {
			$result = "hello " + $x + $y + $value1 + $value2
			$result1 = $x + $value1
			$result2 = $y + $value2
		}
		include foo($value1, $value2) as included

		$s = fmt.printf("%s is {%d,%d}", $included.result, $index1, $index2)
		$s1 = fmt.printf("one: %s", $included.result1)
		$s2 = fmt.printf("two: %s", $included.result2)
		test [$s, $s1, $s2,] {}
	}
}

-- OUTPUT --
Vertex: test[hello axax is {0,0}]
Vertex: test[hello ayay is {0,1}]
Vertex: test[hello azaz is {0,2}]
Vertex: test[hello bxbx is {1,0}]
Vertex: test[hello byby is {1,1}]
Vertex: test[hello bzbz is {1,2}]
Vertex: test[hello cxcx is {2,0}]
Vertex: test[hello cycy is {2,1}]
Vertex: test[hello czcz is {2,2}]
Vertex: test[one: aa]
Vertex: test[one: bb]
Vertex: test[one: cc]
Vertex: test[two: xx]
Vertex: test[two: yy]
Vertex: test[two: zz]
