On Thu, Jul 21, 2011 at 11:30 AM, Harry Kakueki <list.push / gmail.com> wrote: > per = [3,5,6,0,1,4,5,6,9,1,9] > > so_my_jacket, wont_open, now = [], per.max, per.size # because, > (0...now).zip(per){|is_stuck, shut| so_my_jacket << is_stuck if > shut==wont_open} > > p so_my_jacket #> [8, 10] > Excellent example. :)