> Bulat Ziganshin <bulatz / integ.ru> wrote: > > Array#uniqc - gets sorted array of items and returns array of pairs > [item, count] > > > > and these two methods must be included in Ruby itself, because they support > > very widespread programming idioms > > Requiring a sorted array seems jarring for a ruby Array# builtin - very > few standard class methods have preconditions. That may be, but "uniq" is a well known idiom (at least in the unix world), and it does indeed require a sorted input.