Method equal()
- Method
equal
intequal(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.arrayThe contents of
aandbare checked recursively, and if all their contents are equal and in the same place, they are considered equal.Note that for objects this case is only reached if neither
anorbimplements lfun::_equal().typeReturns
(a <= b) && (b <= a).- See also