From: Joey Date: 2006-06-01T07:36:44+09:00 Subject: Re: Newbie: Does Array.each guarantee an ordered result? ------=_Part_8444_21639657.1149115001568 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Array#each does not change the order of the array. j`ey http://www.eachmapinject.com On 5/31/06, Wes Gamble wrote: > > > By the way, I just realized - I meant that I wanted the array elements > in subscript lowest to highest order (in their natural array order), NOT > that I wanted to sort the values. My language was sloppy in the OP. > > I just wanted to know if each was basically a hash iterator and if so, > did I have to be concerned about a hash not having any implicit > ordering. > > Put another way, by using the each method on an array, was I "giving up" > the implied ordering of the array so that I might not get the array > elements in the order in which they existed in the array. > > Wes > > > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_8444_21639657.1149115001568--