![]()
|
copy
|
The copy function creates an exact copy of the specified Lambda object.
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.
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.
(copy 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
Returns:
Examples
Argument Types
Structure
Dictionary
Directory
Pair
List
Vector
Brick
Matrix
Lambda
NumMatrix
CpxVector
ShortVector
How do I contact the AIS team?