Files
mgmt/examples/lang/map-iterator0.mcl
James Shubin d1753c592a lang: core: iter: Misc formatting fixes
Also fix up the examples.
2024-07-02 23:49:56 -04:00

14 lines
234 B
Plaintext

import "iter"
$fn = func($x) { # notable because concrete type is fn(t1) t2, where t1 != t2
len($x)
}
$in1 = ["a", "bb", "ccc", "dddd", "eeeee",]
$out1 = iter.map($in1, $fn)
$t1 = template("out1: {{ . }}", $out1)
test [$t1,] {}