Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Backlog
-
Component/s: None
-
Labels:None
Description
Reported by karmazilla, Feb 17, 2009
What (small set of) steps will reproduce the problem?
PersistentArrayMap gets it wrong:
user=> {1 1 1 1 1 1 2 2}
{1 1, 1 1, 1 1, 2 2}
What is the expected output? What do you see instead?
But PersistentHashMap gets it right:
user=> (hash-map 1 1 1 1 1 1 2 2)
{1 1, 2 2}
What version are you using?
rev 1286.
Was this discussed on the group? If so, please provide a link to the
discussion:
http://groups.google.com/group/clojure/browse_thread/
thread/5a38a6b61b09e025
Please provide any additional information below.
PersistentArrayMap seems to be the culprits. Line 65 to 73. They should
probably assoc the individual items like PersistentHashMap do, I guess.
Converted from http://www.assembla.com/spaces/clojure/tickets/87
Attachments:
map-literals-error.diff - https://www.assembla.com/spaces/clojure/documents/cJ9rlAc4Gr36CjeJe5aVNr/download/cJ9rlAc4Gr36CjeJe5aVNr