3 ms·
I'm not new to Ruby but I don't know how to write a C-style for loop in Ruby either. Ruby has iterators, so you don't need for loops. list_of_things.each {|th
by BenjiWiebe 5y ago
I'm not new to Ruby but I don't know how to write a C-style for loop in Ruby either.
Ruby has iterators, so you don't need for loops.
list_of_things.each {|thing| thing.dostuff }