equals method

bool equals (Object e1, Object e2)
override

Compare two elements for being equal.

This should be a proper equality relation.

Implementation

bool equals(Object e1, Object e2) => e1 == e2;