Method equal()
- Method
equal
boolequal(mixeda,mixedb)- Description
This function checks if the values
aandbare equivalent.- Returns
If either of the values is an object the (normalized) result of calling lfun::_equal() will be returned.
Returns
1if both values are false (zero, destructed objects, prototype functions, etc).Returns
0(zero) if the values have different types.Otherwise depending on the type of the values:
intReturns the same as
a == b.floatstringprogramarrayThe contents of
aandbare checked recursively, and if all their contents are equal and in the same place and have the same set_weak_flag() flags, they are considered equal.Note that for objects this case is only reached if neither
anorbimplements lfun::_equal().mappingmultisetobjectfunction(:void)Two functions are equal if they refer to the same identifier in the same class and their objects are equal.
typeReturns
(a <= b) && (b <= a).- See also