Hi forum,
I'm fighting with a function like this!
function(["x","y","x"]) do |a,b|c|
printf("%10s %10s %10s\n",a,b,c)
end
It works fine, but I would like a "pseudo-code" like this
new array
function(["x","y","z"]) do |a,b|c|
push a,b,c into array
end
if array is not empty
printf("%10s %10s %10s\n",a,b,c)
end
Which is the best way to write it?
Thank you very very much,
Al
ยทยทยท
--
Posted via http://www.ruby-forum.com/.