# File lib/mega/harray.rb, line 168
  def collect
    nha = HArray.new
    (0...self.length).each { |i| nha << yield(self.fetch(i)) }
    nha
  end