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
1 2 3 4
i = 0 for j in ['foo', 'bar', 'baz'] puts "#{i} #{j}" ...
What is the best way to emu...