godot/modules/gdscript/tests/scripts/parser/features/lambda_named_callable.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
212 B
GDScript3
Raw Normal View History

func i_take_lambda(lambda: Callable, param: String):
lambda.call(param)
func test():
var my_lambda := func this_is_lambda(x):
print("Hello")
print("This is %s" % x)
i_take_lambda(my_lambda, "a lambda")