![]() |
|
Navigation |
Synopsis structural equality between values.
Function
bool eq(value x, value y)
Usage
import Type;
Description this function provides the same semantics as the == operator (Rascal/Expressions/Values/Value/Equal), with a minor difference.
The difference is that no implicit coercions are done between values of incomparable types, such as == does for
int, real and rat.
Examples
rascal>import Type; ok rascal>1 == 1.0 bool: true rascal>eq(1,1.0) bool: false ![]() |