|
compare
|
The compare function tests if two Lambdas equal, greater than, or less than. Two Lambdas
are equal, if they have the same variables, constants, and identical PcodeVectors.
The compare function returns an Integer value: 0 if the Lambdas are equal,
+1 if {Lambda1} is greater than {Lambda2}, and -1 if {Lambda1}
is less than {Lambda2}.
The compare performs a deep compare and will determine if two Lambdas have the same variables, constants and pcode vectors. Usually if an Lambda is cloned (copied) from another Lambda and the cloned Lambda is assigned a new name, the compare will see that the newly cloned Lambda and original Lambda are equivalent and will return 0 (equal).
Returns 0 if the two Lambdas are equal.
Returns -1 if the Lambda1 is less than Lambda2.
Returns +1 if Lambda1 is greater than Lambda2.
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 Lambda1 The first Lambda to be compared. Lambda Lambda2 The second Lambda to be compared Lambda
Returns:
Examples
Argument Types
How do I contact the AIS team?