Add functions for external collection hashing

Description

External collections wishing to implement hasheq appropriately must follow the advice at http://clojure.org/data_structures#hash. To simplify the implementation (and avoid unwanted dependencies on the internal Murmur3 class), add two new functions hash-ordered-coll and hash-unordered-coll that provide a proper collection hasheq over entire collections.

Patch: clj-1348-3.patch (fixes [k v])

Environment

None

Attachments

3

Activity

Show:

Alex Miller February 12, 2014 at 5:46 PM

New patch fixing [k v].

Rich Hickey February 12, 2014 at 4:53 PM

[k,v] => [k v]

Alex Miller February 10, 2014 at 10:02 PM

oops

Alex Miller February 10, 2014 at 3:27 PM

Added patch. Will need to be refreshed once other patches go in.

Completed

Details

Assignee

Reporter

Approval

Ok

Patch

Code

Priority

Affects versions

Fix versions

Created February 10, 2014 at 3:04 PM
Updated February 14, 2014 at 4:18 PM
Resolved February 14, 2014 at 4:18 PM