hx-eq

Deep equality checker, inspired by https://github.com/elnabo/equals/ , but corrected for new haxe versions
https://github.com/mnemesong/hx-eq

To install, run:

haxelib install hx-eq 0.0.1 

See using Haxelib in Haxelib documentation for more information.

README.md

hx-eq

Deep equality checker, fork of https://github.com/elnabo/equals/ , but corrected for haxe 4.0+ versions

Installation

haxelib install hx-eq

Usage

import hxEq.Eq;

function main () {
	var a = [1, 3, 5];
	var b = [1, 4, 5];
	var c = [1, 3, 5, 7];
	var d = [1, 3, 5];
	trace(Eq.eq(a, b)); // false
	trace(Eq.eq(a, c)); // false
	trace(Eq.eq(a, d)); // true
}

Limitations

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

License

MIT

Tribute

Fork of https://github.com/elnabo/equals/ With respect to Mr. elnabo and the package he developed

Contributors
Anatoly-Starodubstev
Version
0.0.1
Published
2 years ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub

⌂