![]()
|
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. When to use The makeLambda and the new functions allow the programmer to create an Lambda object.
Returns the evaluating Lambda.
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. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types Av: (Optional) The Arguments Structure object . Symbol args Must follow the Av: keyword and must be a structure containing argument name symbol and value pairs. (name: value) Structure Tv: (Optional).The Temporary Variable Structure object. Symbol vars Must follow the Tv: keyword and must be a structure containing temporary variable name symbol and value pairs. (name: value) Structure Pv: (Optional).The Persistent Variable Structure object. Symbol pvars Must follow the Pv: keyword and must be a structure containing persistent variable name symbol and value pairs. (name: value) Structure Cv: (Optional).The Persistent Class Variable Structure object. Symbol cvars Must follow the Cv: keyword and must be a structure containing persistent class variable name symbol and value pairs. (name: value) Structure Rv: Optional).The Register Variable Structure object Symbol regs Must follow the Rv: keyword and must be a structure containing register variable name symbol and data type pairs. (name: type) Structure Pc (Mandatory).The Pcode Vector object. PcodeVector Sc (Optional) The source Token Vector for formula redisplay. If present must be a vector containing source line tokens. Vector
Returns:
Examples
Argument Types
Lambda
How do I contact the AIS team?