1
2
3
4
i = 0
for j in ['foo', 'bar', 'baz']
    puts "#{i} #{j}"
...

Ruby Python's enumerate in Ruby?

by robby86533.identity.net, July 14, 2008 23:02, 3 refactorings, tagged with python, ruby, for, enumerate

What is the best way to emu...

Cbb09ca8a832170ec73186f5c8cafba4 Talk