From: 7stud -- Date: 2007-10-03T22:05:32+09:00 Subject: Re: Searching through a sorted array Axel Etzold wrote: > Can you explain this output: a = [2, 4, 6, 8] cond='lower_index>0' r=a.find_lower_index(cond) cond='upper_index<4' s=a.find_upper_index(cond) p r,s p a[r] p a[s] --output:-- 3 2 8 6 -- Posted via http://www.ruby-forum.com/.