emmanueltouzery / prelude-ts

Functional programming, immutable collections and FP constructs for typescript and javascript
ISC License
377 stars 21 forks source link

improved HashMap.hashCode() implementation inspired by Clojure #67

Closed fmw closed 1 year ago

fmw commented 1 year ago

There are two important changes:

I've also added a test that verifies the hashcode doesn't take the order in which the kv-pairs are supplied into account.

fmw commented 1 year ago

(the force push was to fix a typo in the test it description).

emmanueltouzery commented 1 year ago

thanks a lot! i'll try to release this ASAP