blob: 7971ca72a6789307dc75cd221cfb185480b97827 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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")
|