Mega Code Archive

 
Categories / Ruby / Hash
 

RuntimeError

1.upto(100) { |x| hash[x] = true } hash.keys { |k| hash[k * 2] = true }