Monday, December 9, 2013

Ruby: each_with_index


X.each_with_index do |item, index|
  puts "current_index: #{index}
end

No comments:

Post a Comment

Followers

Blog Archive