-- main.mcl --
import "golang"
import "iter"

$fn1 = func($x, $y) {
	$x + $y
}

$in1 = [-1, 0, 1, 2, 3, 4, 5, -1]

$out1 = iter.reduce(-1, $in1, $fn1)

$t1 = golang.template("out1: {{ . }}", $out1)

test "${t1}" {}
-- OUTPUT --
Vertex: test[out1: 12]
