Array Ruby

a = ['a','b','c']
a.each_index {|i| print i}         # Array-specific: prints "012"