From: Li Chen Date: 2006-11-21T16:06:17+09:00 Subject: Re: array question J. B. Rainsberger wrote: > Of course, if we know the items in the array are in ascending order, we > can /really/ cheat: > > b = (a*2).sort[1..-2] > > That's as many as I could think of. Thank you but elements in the array are in random order. Li -- Posted via http://www.ruby-forum.com/.