Debian Codegraph @

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

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