I forgot to plumb this in through the parser. Pretty easy to add, hopefully I didn't forget any weird corner scope cases here.
11 lines
191 B
Plaintext
11 lines
191 B
Plaintext
-- main.mcl --
|
|
import "fmt"
|
|
|
|
$s = fmt.printf("%v", func($x) {
|
|
len($x)
|
|
}(func($x){ $x }("helloworld"))) # inline lambda call as an arg to another
|
|
|
|
test [$s,] {}
|
|
-- OUTPUT --
|
|
Vertex: test[10]
|