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