Answers for "ruby loop through array from last item backwards"

2

ruby loop through array from last item backwards

array = [1, 2, 3, 4, 5, 6]
array.reverse_each { |x| puts x }
Posted by: Guest on April-18-2022

Code answers related to "ruby loop through array from last item backwards"

Browse Popular Code Answers by Language