Re: Bug in count for hash-maps with nil values

2009-09-25 Thread Christophe Grand
On Fri, Sep 25, 2009 at 1:46 AM, Richard Newman holyg...@gmail.com wrote: I guess this is already ticketed. I should have searched first, sorry for the noise. It's not already ticketed, even if the root cause might be the same. As I pointed out in my message, these are not hash maps,

Re: Bug in count for hash-maps with nil values

2009-09-24 Thread Richard Newman
Can anyone else confirm? I see the same thing. Both working and non-working lengths are PersistentArrayMaps, so this isn't a hash map thing. user= (type {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil 9 nil}) clojure.lang.PersistentArrayMap user= (type {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7

Re: Bug in count for hash-maps with nil values

2009-09-24 Thread MarkSwanson
Confirmed. I'm using clojure from git: $ git status # On branch master nothing to commit (working directory clean) I also tried with the ':' Clojure= (count {:1 nil :2 nil :3 nil :4 nil :5 nil :6 nil :7 nil :8 nil :9 nil}) 0 --~--~-~--~~~---~--~~ You received

Re: Bug in count for hash-maps with nil values

2009-09-24 Thread Jason Wolfe
I guess this is already ticketed. I should have searched first, sorry for the noise. http://www.assembla.com/spaces/clojure/tickets/192-hashmaps--count-is-not-always-updated-when-associng-dissocing-a-nil-key -Jason --~--~-~--~~~---~--~~ You received this message

Re: Bug in count for hash-maps with nil values

2009-09-24 Thread Richard Newman
I guess this is already ticketed.  I should have searched first, sorry for the noise. It's not already ticketed, even if the root cause might be the same. As I pointed out in my message, these are not hash maps, they're array maps. You should file a new ticket and refer to #192.

Bug in count for hash-maps with nil values

2009-09-23 Thread Jason Wolfe
On the most recent git revision of Clojure (branch master, commit 64323d8c6ad4962ac780d4d904b69a891ab312f8), user= (count {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil}) 8 user= (count {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil 7 nil 8 nil 9 nil}) 0 user= (count {1 nil 2 nil 3 nil 4 nil 5 nil 6 nil