-- main.mcl --
import "fmt"
import "math"

$map = {0 => "a", 1 => "b", 2 => "c"}

$key = 42 # should be out of scope

forkv $key, $val in $map {
	$newkey = if math.mod($key, 2) == 0 {
		$key
	} else {
		42
	}
	$s = fmt.printf("%s is %d", $val, $newkey)
	test [$s] {}
}
-- OUTPUT --
Vertex: test[a is 0]
Vertex: test[b is 42]
Vertex: test[c is 2]
