From: James Edward Gray II Date: 2006-06-04T12:55:19+09:00 Subject: Re: Sorted list? 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] James Edward Gray II