Debian Codegraph @

lang/interpret_test/TestAstFunc2/map-numbered.txtar

raw
1 -- main.mcl --
2 import "fmt"
3 import "iter"
4
5 $fn = func($x) {
6 fmt.printf("hey%d", $x)
7 }
8
9 test iter.map([1, 2, 3,], $fn) {}
10 -- OUTPUT --
11 Vertex: test[hey1]
12 Vertex: test[hey2]
13 Vertex: test[hey3]