On Jul 10, 10:49 am, Dave Smith
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi Folks,
>
> Real easy one for you probably. I''m just trying to split an array
in
> half into 2 separate arrays that I can loop through and have seen the
> Partition method. Can anyone give me an example of how to use this, as I
> don''t quite understand what it means by having a true_array and a
> false_array!?
>
it returns two arrays: the array containing those elements of your
array for which the block evaluated to something with boolean value
true (true_array) and those with boolean value false
Fred> Thanks a lot guys
> --
> Posted viahttp://www.ruby-forum.com/.