Skip to content

elnabo/equals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

equals - Deep equality for Haxe

Installation

haxelib install equals

Usage

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
	}
}

Limitations

  • Direct function equality returns physical equality
  • Object and typedef function var are ignored if not null

About

Deep equality for Haxe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages