idiombook
7/17/2017 - 9:43 AM

[language: Ruby, syntax: for index loop]

[language: Ruby, syntax: for index loop]

("a".."z").each_with_index{|value, idx|
  puts "idx = #{idx} and alphabet = #{value}"
}