How to use partition

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!?

Thanks a lot guys

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