import "iter" $fn = func($x) { # ignore arg 42 } $in = [5, 4, 3, 2, 1,] $out = iter.xmap($in, $fn) # XXX: change to map $t = template("out: {{ . }}", $out) test $t {}