☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
basic-conditional-scoped-lambda-args.txtar
☽
☼
lang/interpret_test/TestAstFunc2/basic-conditional-scoped-lambda-args.txtar
code
plain
raw
GPL-3.0
(C) 2013-2024, James Shubin and the project contributors
debian/copyright
1
-- main.mcl --
2
$some_bool = false
3
$fn = if $some_bool {
4
func($b) {
5
"hello" + $b
6
}
7
} else {
8
func($bb) {
9
"world" + $bb
10
}
11
}
12
13
$out = $fn("wide")
14
test "${out}" {}
15
-- OUTPUT --
16
Vertex: test[worldwide]