mirror of
https://github.com/godotengine/godot.git
synced 2026-01-02 13:49:54 +03:00
5 lines
92 B
GDScript
5 lines
92 B
GDScript
func test():
|
|
var x = 42
|
|
var my_lambda = func(): print(x)
|
|
my_lambda.call() # Prints "42".
|