mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
4 lines
92 B
GDScript
4 lines
92 B
GDScript
func test():
|
|
var x = 42
|
|
var my_lambda = func(): print(x)
|
|
my_lambda.call() # Prints "42".
|