partition

partition

ri

 --------------------------------------------------- Enumerable#partition
      enum.partition {| obj | block }  => [ true_array, false_array ]
 ------------------------------------------------------------------------
      Returns two arrays, the first containing the elements of _enum_ for
      which the block evaluates to true, the second containing the rest.
 
         (1..6).partition {|i| (i