From: Victor Shepelev Date: 2006-06-04T13:03:08+09:00 Subject: Re: Sorted list? From: James Edward Gray II [mailto:james@grayproductions.net] Sent: Sunday, June 04, 2006 6:55 AM > On Jun 3, 2006, at 9:15 PM, Victor Shepelev wrote: > > > BTW, I'm slightly surprized such a "fundamental" (?) thing is > > neither part > > of core, nor stdlib, nor some "common" extension. > > Oh but it is... ;) > > >> require "set" > => true > >> ordered = SortedSet.new([3, 1, 4, 0]) > => # > >> ordered.add(2) > => # > >> ordered.to_a > => [0, 1, 2, 3, 4] Oooops. I'm an idiot. Thanks James! > James Edward Gray II Victor.