Subject: Re: Is high-speed sorting impossible with Ruby?
From: "Gaurav C." <chande.gaurav gmail.com>
Date: Thu, 1 Dec 2011 05:00:31 +0900
References: 390535390580390593390600390607390614390621
In-reply-to: 390621
> What's the difference between Array.new(1e6+1) {|n| ""} and
> Array.new(1e6+1, "")?
Okay. Thanks all who explained this.
But, again, why is it better to use the former in this case?
--
Posted via http://www.ruby-forum.com/.