turtles-at
<breeds>-at

turtles-at dx dy
<breeds>-at dx dy

Reports an agentset containing the turtles on the patch (dx, dy) from the caller (including the caller itself if it's a turtle). If the caller is the observer, dx and dy are calculated from the origin (0,0).

;; suppose I have 40 turtles at the origin
show count turtles-at 0 0
=> 40

If the name of a breed is substituted for "turtles", then only turtles of that breed are included.

breed [cats cat]
breed [dogs dog]
create-dogs 5 [ setxy 2 3 ]
show count dogs-at 2 3
=> 5

Take me to the full NetLogo Dictionary