# File lib/facet/harray.rb, line 295 def flatten nha = HArray.new (0...self.length).each do |i| sfi = self.fetch(i) if sfi.kind_of?(HArray) or sfi.kind_of?(Array) nha.concat(sfi.flatten) else nha.set(nha.length,sfi) end end nha end