turtles-at1.0

turtles-at dx dy <breeds>-at dx dy Turtle Command Patch Command

Reports an agentset containing the turtles on the patch (dx, dy) from the caller. (The result may include the caller itself if the caller is a turtle.)

create-turtles 5 [ setxy 2 3 ]
show count [turtles-at 1 1] of patch 1 2
=> 5

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

Take me to the full NetLogo Dictionary