Files
mgmt/lang/interpret_test/TestAstFunc2/call-inline-lambda2.txtar
James Shubin 1538befc93 lang: ast, parser: Allow calling anonymous functions
I forgot to plumb this in through the parser. Pretty easy to add,
hopefully I didn't forget any weird corner scope cases here.
2025-01-26 17:21:11 -05:00

9 lines
130 B
Plaintext

-- main.mcl --
$s = func($x) {
"hello" + $x
}("world") # inline lambda call
test [$s,] {}
-- OUTPUT --
Vertex: test[helloworld]