mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
5 lines
92 B
GDScript3
5 lines
92 B
GDScript3
![]() |
func test():
|
||
|
var x = 42
|
||
|
var my_lambda = func(): print(x)
|
||
|
my_lambda.call() # Prints "42".
|