Example Lambda send 009
|
In this example, we will add a child Lambda, also named "square",
that takes a number and computes the cube of that number. The send command
will call the child Lambda instead of the like named method in the Methods Dictionary.
Notes and Hints When the receiver of the send command is an Lambda, the send
command looks to see if the receiver has any child Lambdas with the same name as
the message. If so, the child Lambda is called instead of the method in the Methods
Dictionary.
Returns:
Returns:
Returns:
Returns:
Returns:
Here are examples of the send function at work.
Here is the link to the current function used in this example.
Here are a number of links to other related functions.
addMethod(#void) | defMethod(#void) | methodsOf(#void) |
Here are the links to the data types of the arguments used in this example. Here are a number of links to examples having similar argument types.
Lambda
Dictionary
Analytic Information Server (AIS)AIS Component Systems
|