Debian Codegraph @

lang/interpret_test/TestAstFunc1/simple-lambda1.txtar

raw
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 $out = $answer()
10
11 test "${out}" {}
12 -- OUTPUT --
13 Edge: FuncValue -> call # fn
14 Vertex: FuncValue
15 Vertex: call