Debian Codegraph @

lang/interpret_test/TestAstFunc2/efficient-function.txtar

raw
1 -- main.mcl --
2 $prefix = "hello"
3
4 func prefixer($x) {
5 $prefix + ":" + $x # i'd only ever expect one ":" in the graph
6 }
7
8 $out1 = prefixer("a")
9 $out2 = prefixer("b")
10
11 test "${out1}" {} # hello:a
12 test "${out2}" {} # hello:b
13 -- OUTPUT --
14 Vertex: test[hello:a]
15 Vertex: test[hello:b]