import "golang"
import "iter"
import "math"

$fn1 = func($x) {
	math.mod($x, 2) == 0 # is even?
}

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

$out1 = iter.filter($in1, $fn1)

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

test [$t1,] {}
