☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
lambda-with-nested-poly-func.txtar
☽
☼
lang/interpret_test/TestAstFunc2/lambda-with-nested-poly-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
4
$add = func($x) {
5
$x + $x
6
}
7
8
$num = 2
9
$out = $add($num) # 4
10
11
test [fmt.printf("%d + %d is %d", $num, $num, $out),] {} # simple math
12
-- OUTPUT --
13
Vertex: test[2 + 2 is 4]