Ian Bicking: the old part of his blog

Re: Able to make a mess with anything

source
Here's the ruby version, for completeness

6000.times do |i|
   x = Hash.new
   1000.times do |j|
      x[i]=j
      puts x[i] # Just to actually do something.
   end
end
Comment on Able to make a mess with anything
by Joel Redman

Comments:

> 6000.times do |i| > x = Hash.new > 1000.times do |j| > x[i]=j > puts x[i] # Just to actually do something. > end > end

But you would use this, of course:

puts (0..6000).map{(0..1000).to_a}

Docutils System Messages

System Message: ERROR/3 (<string>, line 1); backlink

Undefined substitution referenced: "i".

System Message: ERROR/3 (<string>, line 1); backlink

Undefined substitution referenced: "j".
# Jules