Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby how to loop through an array

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