title: How to make a list/array of turtles-on patch-here?
body: <p>i have no experience on netlogo, so i am asking if someone know how to set the greatest energy of a turtle on patch-here. If i have on a patch an agent y and 3, 2 or 4 x´s , i want to agent y stay with the biggest energy of those 3,i know i have to do a loop but  how do I loop not knowing how many x-type agents are in this patch?</p>
  
  <pre><code>breed [ y ys]
  breed [ x ys]
  x-own[ energy]
  y-own [ energy ]
  
      to move-y
      ask y[
        if count x-on patch-here &gt; 2
        [
         set breed x
         ;anyone can help ?
         let energy one-of x-on patch-here ; this is wrong because i dont want a random 
        ]
      ]
      end
  </code></pre>
  
  <p>hope you can help me =)</p>