☰
Debian Codegraph
@
0.0.26.git.2024.10.25.85e1d6c0e8-4
/
/
lang
/
interpret_test
/
TestAstFunc2
/
if-in-func-0.txtar
☽
☼
lang/interpret_test/TestAstFunc2/if-in-func-0.txtar
code
plain
raw
GPL-3.0
(C) 2013-2024, James Shubin and the project contributors
debian/copyright
1
-- main.mcl --
2
# this can return changing functions, and could be optimized, too
3
$fn = func($b) {
4
if true {
5
"hello"
6
} else {
7
"world"
8
}
9
}
10
11
$out1 = $fn(true)
12
13
test "${out1}" {}
14
-- OUTPUT --
15
Vertex: test[hello]