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

$ins = ["a", "bb", "ccc", "dddd", "eeeee"]

# the inline lambda format is more readable with the func as the second arg
$out = iter.map($ins, func($x) {
	len($x)

})

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

test "${t}" {}
-- OUTPUT --
Vertex: test[out: [1 2 3 4 5]]
