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,
4 refactorings, tagged with ruby, python, for, enumerate
i = 0
for j in ['foo', 'bar', 'baz']
puts "#{i} #{j}"
...
What is the best way to emu...