Mega Code Archive

 
Categories / Ruby / Array
 

Reverse the Order of the Arrays Elements

x = [1, 2, 3] puts x.reverse.inspect