haxelib install equals
using equals.Equal;
class Main {
public static function main () {
var a = [1, 3, 5];
var b = [1, 4, 5];
var c = [1, 3, 5, 7];
var d = [1, 3, 5];
trace(a.equals(b)); // false
trace(a.equals(c)); // false
trace(a.equals(d)); // true
}
}
- Direct function equality returns physical equality
- Object and typedef function var are ignored if not null