☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
test-polymorphic-func.txtar
☽
☼
lang/interpret_test/TestAstFunc2/test-polymorphic-func.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
func double($x) {
4
$x + $x
5
}
6
$name1 = fmt.printf("%d", double(42))
7
$name2 = double("hello")
8
test [$name1,] {}
9
test [$name2,] {}
10
-- OUTPUT --
11
Vertex: test[84]
12
Vertex: test[hellohello]