M
Michael Boutros
Hello! More and more I find myself having to do something like this:
def some_method(foo)
results = []
foo.each {|f| results << f.reverse}
return results
end
As you can see, that is some pretty ugly code, but it's also a common
scenario. How can I make it a little less ugly?
Thanks,
Michael Boutros
def some_method(foo)
results = []
foo.each {|f| results << f.reverse}
return results
end
As you can see, that is some pretty ugly code, but it's also a common
scenario. How can I make it a little less ugly?
Thanks,
Michael Boutros