1 2 3 4 5 6
def split(arr) return arr[0..arr.length/2],arr[(arr.length/2)+1..-1] end puts split([1,2,3,4,5])
1 2 3 4 5