☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
simple-lambda2.txtar
☽
☼
lang/interpret_test/TestAstFunc2/simple-lambda2.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
# this should be a function as a value, iow a lambda
5
$answer = func() {
6
"the answer is 42"
7
}
8
9
$out1 = $answer()
10
$out2 = $answer()
11
12
$name = $out1 + $out2
13
14
test "${name}" {}
15
-- OUTPUT --
16
Vertex: test[the answer is 42the answer is 42]