From: Adam Prescott Date: 2011-07-21T20:02:04+09:00 Subject: Re: array max value --00221532c8fc8c594704a8924610 Content-Type: text/plain; charset=UTF-8 On Thu, Jul 21, 2011 at 11:30 AM, Harry Kakueki 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. :) --00221532c8fc8c594704a8924610--