Splitting an array in half in Ruby
So I have a collection of objects I need to split into two approximately equal arrays. Luckily, there is the partition method in Ruby: i = 0 count = User.count group_one, group_two = User.all.partition { i += 1; i < count / 2 }The partition method iterates over each object, with