### of

#### [reporter] of agent
[reporter] of agentset

For an agent, reports the value of the reporter for that agent (turtle or patch).

    show [pxcor] of patch 3 5
    ;; prints 3
    show [pxcor] of one-of patches
    ;; prints the value of a random patch's pxcor variable
    show [who * who] of turtle 5
    => 25
    show [count turtles in-radius 3] of patch 0 0
    ;; prints the number of turtles located within a
    ;; three-patch radius of the origin

For an agentset, reports a list that contains the value of the reporter for each agent in the agentset (in random order).

    crt 4
    show sort [who] of turtles
    => [0 1 2 3]
    show sort [who * who] of turtles
    => [0 1 4 9]

Take me to the full NetLogo Dictionary