|
new
|
The new function creates a new Lambda object, either an exact copy of the specified Lambda object, or a new
Lambda from the specified components. The newly cloned Lambda has the same behavior and structure as the original Lambda
with the exception that the cloned Lambda has a similar but distinct Pv structure. This allows cloning of Lambda objects,
which have the same behavior but may have different values in their persistent variables. Alternatively, the new function may create a new Lambda object from the specified components specified in the
following optional arguments: {Av:}, {Tv:}, {Pv:}, {Cv:}, {Pc:}, {In:}, and {Sc:} to allow Lambda
properties to be supplied by the programmer.
Use this function when a multiple copies of the Lambda are required. For instance, if one has a blank expert Lambda, and one needs expert help on two separate subjects. Make two copies of the blank expert Lambda. Teach the first expert Lambda about subject one, and teach the second expert Lambda about subject two.
(new anLambda ...) A new copy of the {anLambda} argument
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 anLambda The Lambda to be copied Lambda ... Optional arguments to the new child Lambda within the template Lambda ---
Returns:
Examples
Argument Types
How do I contact the AIS team?