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

$fn = func($x) { # ignore arg
	42
}

$ins = [5, 4, 3, 2, 1]

$out = iter.map($ins, $fn)

$t = golang.template("out: {{ . }}", $out)

test "${t}" {}
-- OUTPUT --
Vertex: test[out: [42 42 42 42 42]]
