Debian Codegraph @

lang/interpret_test/TestAstFunc2/simple-conditional-scoped-lambda.txtar

raw
1 -- main.mcl --
2 $funcgen = func() {
3 func($b) {
4 "hello"
5 }
6 }
7
8 $some_bool = false
9 $fn = if $some_bool {
10 $funcgen()
11 } else {
12 func($bb) {
13 "world"
14 }
15 }
16
17 $out = $fn(false)
18 test "${out}" {}
19 -- OUTPUT --
20 Vertex: test[world]