☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
map-numbered.txtar
☽
☼
lang/interpret_test/TestAstFunc2/map-numbered.txtar
code
plain
raw
GPL-3.0
(C) 2013-2024, James Shubin and the project contributors
debian/copyright
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]