blob: 913115a8a32b0c3e64e942d0e14b7dc13c880e3f [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrab6ac9f62020-01-21 11:11:16 +01002 closure lambda(mixed *arr, mixed)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Constructs a lambda closure, like lambda function in LISP.
6 The closure is bound to the creating object, and thus can contain
7 references to global variables.
MG Mud User88f12472016-06-24 23:31:02 +02008
Zesstra715ec202025-07-09 22:18:31 +02009 The first argument is an array describing the arguments
10 (symbols) passed to the closure upon evaluation by funcall()
11 or apply().
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013HISTORY
14 Introduced in 3.2@70.
MG Mud User88f12472016-06-24 23:31:02 +020015
Zesstra715ec202025-07-09 22:18:31 +020016SEE ALSO
17 closures(LPC), unbound_lambda(E), apply(E), funcall(E),
18 bind_lambda(E)
19