![]() |
makeLambda
|
The makeLambda function creates a new Lambda object. The newly created Lambda is
a First Class Object Structure, but it is empty. A First Class object in Lambda
Information Server is any object that is fully exposed, i.e., all of the Structures are
visible and modifiable by the programmer. In the case of Lambdas, any of the source code tokens,
Sc, pcode tokens Pc, as well as any of the data structures that make up the Lambda:
Argument variables, Av, persistent variables Pv, persistent class variables Cv,
and Temporary variables, Tv, can viewed and modified by the programmer:
The makeLambda function has the following optional arguments: {Av:}, {Tv:}, {Pv:}, {Cv:}, {rv:},
and {Sc:} to allow Lambda properties to be supplied by the programmer. The only mandatory argument is the
Pcode Vector argument {Pc:}. Refer to the Virtual Machine Chapter for assistance in creating the Pcode Vector. Usage The makeLambda and the new functions allow the programmer to create an Lambda object.
Returns the evaluating Lambda.
Expression:
Arguments
Name
Type
Description Argument: Av: Symbol
(Optional) The Arguments Structure object . Argument: args Structure
Must follow the Av: keyword and must be a structure containing argument name symbol and value pairs. (name: value) Argument: Tv: Symbol
(Optional).The Temporary Variable Structure object. Argument: vars Structure
Must follow the Tv: keyword and must be a structure containing temporary variable name symbol and value pairs. (name: value) Argument: Pv: Symbol
(Optional).The Persistent Variable Structure object. Argument: pvars Structure
Must follow the Pv: keyword and must be a structure containing persistent variable name symbol and value pairs. (name: value) Argument: Cv: Symbol
(Optional).The Persistent Class Variable Structure object. Argument: cvars Structure
Must follow the Cv: keyword and must be a structure containing persistent class variable name symbol and value pairs. (name: value) Argument: Rv: Symbol
Optional).The Register Variable Structure object Argument: regs Structure
Must follow the Rv: keyword and must be a structure containing register variable name symbol and data type pairs. (name: type) Argument: Pc PcodeVector
(Mandatory).The Pcode Vector object. Argument: Sc Vector
(Optional) The source Token Vector for formula redisplay. If present must be a vector containing source line tokens.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Lambda |
Here are also a number of links to functions having arguments with any of these data types.
![]() |
Analytic Information Server (AIS)AIS Component Systems
|