Clojure

Add functions for external collection hashing

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: Release 1.6
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Ok

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])

  1. clj-1348-1.patch
    10/Feb/14 9:27 AM
    1 kB
    Alex Miller
  2. clj-1348-2.patch
    10/Feb/14 3:40 PM
    2 kB
    Stuart Halloway
  3. clj-1348-3.patch
    12/Feb/14 11:46 AM
    1 kB
    Alex Miller

Activity

Hide
Alex Miller added a comment -

New patch fixing [k v].

Show
Alex Miller added a comment - New patch fixing [k v].
Hide
Rich Hickey added a comment -

[k,v] => [k v]

Show
Rich Hickey added a comment - [k,v] => [k v]
Hide
Alex Miller added a comment -

oops

Show
Alex Miller added a comment - oops
Hide
Alex Miller added a comment -

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

Show
Alex Miller added a comment - Added patch. Will need to be refreshed once other patches go in.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: