From: Robert Klemme Date: 2005-01-27T21:50:54+09:00 Subject: Re: Array::uniq { block } ? "ts" schrieb im Newsbeitrag news:200501271239.j0RCdOg11318@moulon.inra.fr... > >>>>> "R" == Robert Klemme writes: > > R> Of all what you said I don't understand your last point: Why is there a > R> collision? > > Array#uniq just store the element of the array as the key of a hash. > > For an hash, 2 values are stored in differents keys if they have a I think the term is "bucket" and not "key". Maybe that was confusing me. > different hash value, or if eql? return false. > > In hash "terminology", there is collision when 2 elements have the same hash > value but are different (eql? return false) (see st.c) Ok, I now see what "collision" you meant. Of course there is a collision but still both keys are stored. Thx for clarifying! robert > > > > Guy Decoux > > >