Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby loop from the last array item

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