Posted By

therobot on 08/13/10


Tagged

ruby programming tips


Versions (?)

Initialize a hash of arrays


 / Published in: Ruby
 

  1. Hash.new{|hash, key| hash[key] = Array.new;}

Report this snippet  

You need to login to post a comment.