Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby loop through array from last item backwards

array = [1, 2, 3, 4, 5, 6]
array.reverse_each { |x| puts x }
 
PREVIOUS NEXT
Tagged: #ruby #loop #array #item
ADD COMMENT
Topic
Name
9+2 =