Files
mgmt/lang/interpret_test/TestAstFunc2/call-inline-lambda3.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

11 lines
154 B
Plaintext

-- main.mcl --
import "fmt"
$s = fmt.printf("%v", func($x) {
len($x)
}("helloworld")) # inline lambda call
test [$s,] {}
-- OUTPUT --
Vertex: test[10]