Debian Codegraph @

lang/interpret_test/TestAstFunc2/simple-conditional-scoped-lambda-call-args-ooo.txtar

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