Debian Codegraph @

lang/interpret_test/TestAstFunc1/returned-lambda.txtar

raw
1 -- main.mcl --
2 $funcgen = func() {
3 func() {
4 "hello"
5 }
6 }
7
8 $fn = $funcgen()
9 $out = $fn()
10
11 test "${out}" {}
12 -- OUTPUT --
13 Edge: FuncValue -> call # fn
14 Edge: call -> call # fn
15 Vertex: FuncValue
16 Vertex: call
17 Vertex: call