title: in ruby how do you do you map a nested hash tree but skipping the first element?
body: <p>I would like to ignore the first element of my hash tree as it has a different presentation and just map all elements minus the first one. This way my recursive function would work. So in my comments.map loop I would like to ignore the first element or delete it.</p>
  
  <pre><code>    def horizontal_tree_for(comments)
          comments.map do |comment, nested_comments|
  
  
         entry(comment) + 
            (nested_comments.size &gt; 0 ?          
                content_tag(:div, horizontal_tree_for(nested_comments), class: "branch") +
              "&lt;/div&gt;"
  
            : "&lt;/div&gt;")
  
  
  
      end.join.html_safe
    end
  
  def entry(comment)
  
    "&lt;div class='entry'&gt;&lt;span class='label'&gt; #{comment.name} &lt;/span&gt;"
  
  end
  </code></pre>