# ruby arr = [0,1,2] # reverse arr_rev = arr.reverse # arr_rev = [2,1,0]; arr = [0,1,2] arr == arr_rev.reverse! # true # ! immediately changes the value and stores it back to the variable
[1,2,3,4].reverse # [4,3,2,1]